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.

[Filled] Currency name

Hello.
I'm in need of a script the removes the name of the currency in the main menu.
I tried to do it myself, and while successful, the menu pretty much just made the text invisible and still spaced the amount of money over to make room for the text.

Thanks :]
 

arev

Sponsor

In "Window_Gold" check for this line:
Code:
self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
And modify it like this:
Code:
self.contents.draw_text(0,0,128,32, $game_party.gold.to_s, 1)
This should work :)
 
Replace your Window_Gold with this:

Code:
#==============================================================================
# ** Window_Gold
#------------------------------------------------------------------------------
#  This window displays amount of gold.
#==============================================================================

class Window_Gold < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, contents.width - 8, 32, 
      $game_party.gold.to_s, 2)
  end
end

That should do the trick.
 

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