Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] How to adjust window's opacity?

Started by Leventhan, July 09, 2008, 07:26:13 AM

0 Members and 1 Guest are viewing this topic.

Leventhan

Help with this, please?

Be kind, everyone you meet is fighting a hard battle.

ahref

@windowname.back_opacity = number between 0 and 255.

that should do the background of the window.

@windowname.opacity might do the text

Leventhan

Which part of the script is that?
Window_Message?

Be kind, everyone you meet is fighting a hard battle.

modern algebra

Well, that was inside a scene, but you could just as easily adjust opacity in the window's initialize method with the code:

self.opacity
self.back_opacity

if you didn't want to mess around with scenes.

Leventhan

I get the command but dunno where to put it ;-;

Be kind, everyone you meet is fighting a hard battle.

modern algebra

Quotewindow's initialize method


class Window_Message (or whatever window)
  def initialize
    # Everything already in the method
    self.back_opacity = xxx
  end
end

Or, as ahref said, in the Scene class you want to modify, right after you make the window, so if in Scene_Menu or something:

def main
  # Bla bla bla
  @menustatus_window = Whatever
  @menustatus_window.opacity = xxx
  # Bla bla bla
end
 

Leventhan

Quote from: modern algebra II on July 10, 2008, 12:00:35 AM
Quotewindow's initialize method


class Window_Message (or whatever window)
  def initialize
    # Everything already in the method
    self.back_opacity = xxx
  end
end

Or, as ahref said, in the Scene class you want to modify, right after you make the window, so if in Scene_Menu or something:

def main
  # Bla bla bla
  @menustatus_window = Whatever
  @menustatus_window.opacity = xxx
  # Bla bla bla
end
 
;8
I love you guys. [Resolved]

Be kind, everyone you meet is fighting a hard battle.