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.

edit to exsisting default menu system

I'm trying to create a single hero menu system with the default one.
And I'm having little problems.
One is trying to add a letter before the numbers in the Time Window and Step Window, like how it is in the Gold Window.
What is the code, and the line to add the letter?
 
I'm not sure, exactly, what you mean. But if you look in the classes for Window_PlayTime and Window_Steps, you will find lines akin to the following:
Code:
    self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)

    self.contents.draw_text(4, 32, 120, 32, text, 2)
These draw text to the window. By using them, as something like this:
Code:
    self.contents.draw_text(0, 0, 60, 32, "G")
These correspond to these values:
Code:
    self.contents.draw_text(x, y, width, height, text)
Now, instead of doing that. You can also do:
Code:
        self.contents.draw_text(0, 32, 160, 32, "Time: " + text)
        # Notice the extended width, and X drawn back, just to allow for the
        # extra letters.

These are all simple functions, found within the Window class. ^_^ Have a nice day!
 

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