Video

Instead of having the “Window.png” file have control of your colors, this Plugin allows you to customize all the available colors in your game using Parameters.

Custom Colors
Version 1.00
SomeRanDev

By default, the text colors used by your game are obtained
from the Window.png file.

However, if someone wanted to manipulate the text color, they
would have to manipulate the source image file; at least,
that's what they would have to do without this Plugin.

Using this Plugin, you can set the Window.png colors using
Parameters. You can use Hex Color Codes, JavaScript Colors,
or RGBA Color Codes.

FURTHERMORE!
You can also add more colors to be called upon using \c[#].

==========================================================================
Default Color Usage Reference
==========================================================================

By default, these are the Text Color IDs used for each color:

NormalColor: 0
SystemColor: 16
CrisisColor: 17
DeathColor: 18
GaugeBackColor: 19
HpGaugeColor1: 20
HpGaugeColor2: 21
MpGaugeColor1: 22
MpGaugeColor2: 23
MpCostColor: 23
PowerUpColor: 24
PowerDownColor: 25
TpGaugeColor1: 28
TpGaugeColor2: 29
TpCostColor: 29

These can be changed using other Plugins, though if you have not changed
them, these are their general function.

==========================================================================
How to Use
==========================================================================

For example, the default Text Color 1 is the second color
in the Window.png and has Hex Code of #20a0d6.

If you wanted to change it, simply change the Parameter.

The Parameters all support the various usable color codes usable in
JavaScript.

==========================================================================
Plugin Commands
==========================================================================

You can also use Plugin Commands to change a Text Color in the middle
of the game:

SetCustomColor ID COLOR

Set ID to the Text Color ID you wish to manipulate.
Set COLOR to the new color you wish to use.

Examples:

SetCustomColor 0 #00ff00
SetCustomColor 25 rgba(30,60,90,255)
SetCustomColor 100 green

==========================================================================
JavaScript Colors
==========================================================================

It can be a JavaScript Color:
http://www.w3schools.com/colors/colors_names.asp

Examples:
Blue
White
Green

==========================================================================
Hex Color Codes
==========================================================================

It can be a Hex Color Code:
http://www.w3schools.com/colors/colors_picker.asp

Examples:
#302faa
#ffffff
#bbaaff
#000000

==========================================================================
RGBA Color Codes
==========================================================================

It can be an RGBA Color Code:
http://www.w3schools.com/colors/colors_picker.asp

Examples:
rbga(125, 125, 125, 255)
rbga(0, 255, 0, 255)
rbga(100, 100, 100, 150)

==========================================================================
End of Help File
==========================================================================

Welcome to the bottom of the Help file.

Thanks for reading!
If you have questions, or if you enjoyed this Plugin, please check
out my YouTube channel!

https://www.youtube.com/c/SumRndmDde

Until next time,
~ SomeRanDev
var SRD = SRD || {};
SRD.CustomColors = SRD.CustomColors || {};

var Imported = Imported || {};
Imported["SumRndmDde Custom Colors"] = true;

(function(_) {
	
	_.default = String(PluginManager.parameters('SRD_CustomColors')['Default Color'] || "#ffffff");
	_.colors = [];
	for(var i = 0; i <= 50; i++) {
		_.colors[i] = String(PluginManager.parameters('SRD_CustomColors')['Text Color ' + i] || _.default);
	}

	var _Window_Base_textColor = Window_Base.prototype.textColor;
	Window_Base.prototype.textColor = function(n) {
	    if(n >= 0 && n <= _.colors.length) return _.colors[n];
	    else return _.default;
	};

	var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
	Game_Interpreter.prototype.pluginCommand = function(command, args) {
	    _Game_Interpreter_pluginCommand.call(this, command, args);
	    if(command.trim().toLowerCase() === 'setcustomcolor') {
	    	_.colors[parseInt(args[0])] = String(args[1]).trim().toLowerCase();
	    }
	};

})(SRD.CustomColors);