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.

Window Opacity Edit+color

Hi I think i can get this using scripting, But I want the Opacity of All my windows in the Game to be 255, maybe just a short, simple script could do the trick?

And if you could, tell me how to change all text color to Black. Thanks and Muhc Apriciated.
 
to change the text colors, look for normal_color disabled_color and other _color methods in your Window_Bas script. for the opacity, this script may work:
Code:
def Window_Base
  alias_method :areox_winbase_upd, :update
  def update
    areox_winbase_upd
    self.opacity = 255
  end
end
 
For the opacity, just change self.opacity to 255 within the window.
To change text color, just add this in a new window above main:
Code:
class Window_Base < Window
  def text_color(n)
    case n
    when 0
      return Color.new(0, 0, 0, 255)
    end
  end    
  def normal_color
    return Color.new(0, 0, 0, 255)
  end
end

Seems like I'm too slow. ':|
 

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