Window_Command text Color

Hello.


I'm trying for hours to change the color of a command window text, but I just can't...


This is my test (yes, for all window_command, for testing purposes):


Window_Command.prototype.drawItem = function(index) {
var rect = this.itemRectForText(index);
var align = this.itemTextAlign();
this.resetTextColor();
this.textColor(4); //<-- this line is new
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
};


But does not seem to work... :/


Any thoughts?
Try this:

Code:
this.changeTextColor(this.textColor(4));
Try this:



this.changeTextColor(this.textColor(4));



Oooh man, it was right on my nose...


Thanks a lot, it works.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/window_command-text-color.56608/