- Joined
- Dec 29, 2012
- Messages
- 723
- Reaction score
- 1,074
- First Language
- Portuguese
- Primarily Uses
- Other
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?
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?
