How do I make a window Opaque?

Ivockrenim

Veteran
Veteran
Joined
Feb 22, 2020
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I haven't used RPG Maker in a while, so I forgot.
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
150
Reaction score
42
First Language
German
Primarily Uses
RMVXA
You will have to explain in more detail what you want to do. Do you mean the windowskin? A specific window in the game? The game window itself? Your query is too vague to be answered properly.
 

Ivockrenim

Veteran
Veteran
Joined
Feb 22, 2020
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I just want all windows to be opaque
 

cremnophobia

Veteran
Veteran
Joined
Dec 10, 2013
Messages
214
Reaction score
95
Primarily Uses
The back_opacity attribute defaults to 192. You need to set it to 255.
Ruby:
class Window_Base
  alias initialize_wo_opaque initialize
  def initialize(x, y, w, h)
    initialize_wo_opaque(x, y, w, h)
    self.back_opacity = 255
  end
end
This makes most windows (excl. battle log, scrolling text, etc.) opaque.
 
Last edited:

Ivockrenim

Veteran
Veteran
Joined
Feb 22, 2020
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Yeah I couldn't find where its at.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,565
Reaction score
541
First Language
English
Primarily Uses
RMVXA
Yeah I couldn't find where its at.
You couldn't find the code cremnophobia posted?
He was giving you a solution. Copy the code and paste it below the default scripts and above main.
Then change the number in it to the value you desire. Any number from 0 to 255.
 

Ivockrenim

Veteran
Veteran
Joined
Feb 22, 2020
Messages
49
Reaction score
1
First Language
English
Primarily Uses
RMVXA
wait I need like a tutorial or something Im just getting errors
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Woke up on an awful nightmare of being banned here because some mod didn't liked me in a super-heroes freeform round robin RP where I used throwing normal hammer as power and it was qualified being too OP. XD Nice to read you all guys. Will not wait next nightmares.
Staring at all the RPG Maker versions I have and realizing that my project has been a long time coming. But, I finally feel like I have the knowledge and experience to make it into something good.
We're almost done with the jam game! :D
I get scam calls all the time so today I gave them a piece of my mind. They hung up on me. Sweet revenge.

Forum statistics

Threads
104,321
Messages
1,005,561
Members
135,844
Latest member
andrewshetty123
Top