Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Changing the text color of the command window?

I was wondering, how can I make it so I can change the color of a specific command window text (like the menu), while keeping the other command windows the default text color?
 

Haki

Member

It's simple:
Code:
@your_command_window.draw_item(index,Color.new(red,green,blue,alpha))

where "index" is the index of command window item (the first item index is 0, second is one etc.).
 
That's if you want to change it dynamically. But if, for example, the save option has been disabled, the command will not be grayed out. So if you use this method, be sure to use it before the script disabled any command in the command window.

If you want to avoid that, go in the Window_Command class and search for normal_color.
Then change it for Color.new(red,green,blue,alpha), or any predefined colors.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top