As the title says. I'd like to change the font color of the Window_ActorCommand in the battle system, independent of any other command windows in the game. I've tried taking a look at "this.changeTextColor()" but I have no clue on where to place it. I'd like to keep it simple and use the System Color as well. Any tips?
Change text color of a specific window
Javascript/Plugin SupportHi,
this.changeTextColor()
is supposed to be used right before you draw the text you want in the new color. By default, this function is called at the beginning of each redraw process to reset the text color back to normal, so you probably won't see any difference if you just change the color once during the creation of the window.
You could either change the way your commands are drawn to the window by assigning a new drawItem(index) function for your Window_ActorCommands prototype. By default, this type uses the inherited function from Window_Command.
Alternatively, you could assign a new normalColor() function to replace the normal text color for this window type without having to change the way your commands are drawn.
this.changeTextColor()
is supposed to be used right before you draw the text you want in the new color. By default, this function is called at the beginning of each redraw process to reset the text color back to normal, so you probably won't see any difference if you just change the color once during the creation of the window.
You could either change the way your commands are drawn to the window by assigning a new drawItem(index) function for your Window_ActorCommands prototype. By default, this type uses the inherited function from Window_Command.
Alternatively, you could assign a new normalColor() function to replace the normal text color for this window type without having to change the way your commands are drawn.
Thanks so much!
For anyone who is wondering, what they suggested, and the easiest way in my opinion, is just copy the inherited function, Window_Base.prototype.normalColor() and change the class and the value. In my case I changed it to Window_ActorCommand. Easy. Appreciate the help. That was staring me in the face!
For anyone who is wondering, what they suggested, and the easiest way in my opinion, is just copy the inherited function, Window_Base.prototype.normalColor() and change the class and the value. In my case I changed it to Window_ActorCommand. Easy. Appreciate the help. That was staring me in the face!
Original thread: https://forums.rpgmakerweb.com/threads/change-text-color-of-a-specific-window.77527/