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.

More Colors for Newbies

Do you know how to add more colors to the default color list available in rmxp?
If not, just check this out and you may learn how to do it. It'd be rather quick I think.

Do you want to see the currency symbol in orange or in black?
Find this line in the Window_Gold script:
self.contents.font.color = system_color

and replace it with:
self.contents.font.color = orange_color

or:
self.contents.font.color = dark_color

Code:
class Window_Base
  # 12 new colors
  def dark_color
    return Color.new(0, 0, 0, 255)
  end
  
  def ocean_color
    return Color.new(0, 0, 130, 255)
  end
  
  def leaf_color
    return Color.new(0, 130, 0, 255)
  end
  
  def green_color
    return Color.new(128, 255, 128, 255)
  end
  
  def army_color
    return Color.new(160,160,0,255)
  end
  
  def violet_color
    return Color.new(130, 0, 130, 255)
  end
  
  def orange_color
    return Color.new(255, 120, 0, 255)
  end
  
  def twilight_color
    return Color.new(192, 192, 192, 255)
  end
  
  def brown_color
    return Color.new(90, 60, 30, 255)
  end
  
  def skin_color
    return Color.new(255, 200, 200, 190)
  end
  
  def pink_color
    return Color.new(255, 200, 240, 255)
  end
  
  def gold_color
    return Color.new(220, 220, 70, 255)
  end
end
 

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