RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Resolved] How to adjust window's opacity?

0 Members and 1 Guest are viewing this topic.

********
Shadow Knight
Rep:
Level 91
Ruin that brick wall!
Project of the Month winner for October 2008
Help with this, please?
« Last Edit: July 10, 2008, 08:25:40 AM by Dr_Minato »
Be kind, everyone you meet is fighting a hard battle.

*
Resident Cloud
Rep:
Level 91
@windowname.back_opacity = number between 0 and 255.

that should do the background of the window.

@windowname.opacity might do the text

********
Shadow Knight
Rep:
Level 91
Ruin that brick wall!
Project of the Month winner for October 2008
Which part of the script is that?
Window_Message?
Be kind, everyone you meet is fighting a hard battle.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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.

********
Shadow Knight
Rep:
Level 91
Ruin that brick wall!
Project of the Month winner for October 2008
I get the command but dunno where to put it ;-;
Be kind, everyone you meet is fighting a hard battle.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Quote
window'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
 

********
Shadow Knight
Rep:
Level 91
Ruin that brick wall!
Project of the Month winner for October 2008
Quote
window'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.