Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
GermanyXItaly1000

Changing transparency of the windowskin in Menu?

Question

This is probably super easy, if it weren't for the fact that I know nothing about Ruby even after two years of using RMXP. (I win at life.)

 

But I just want to have the opacity of the windowskin set to my preferences for the entire game, and I can do that, with Ccoa's UMS. All except for the menu, which will be set at a very low opacity. I'm assuming this is something script-related. What would I have to change or add?

 

Any help is welcomed. I would be grateful.

 

(Then again, this is probably simple :P but Ruby is too difficult for my simple mind.)

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

self.back_opacity = value

 

That should leave the text as non transparent, but make the skin transparet.  As polraudio said, that is per scene.  When you dig around in your Menus, each one of screens like Items or Spells is each its own scene.

 

self.back_opacity = 0

Sets the "Skin" so only the text appears

 

self.back_opacity = 160

Default - Slighly transparent

 

self.back_opacity = 255

Fully Opaque - Cant see through it at all

Share this post


Link to post
Share on other sites
  • 0
Well, You need to know this, When you decrease the opacity of "menu", In fact there is a black screen behind it, So for example when your windowskin is blue, when you decrease the opacity it gets darker. When opacity is 0, There are texts and a black background.
I had the same request a long time ago, So Bigace helped me. when you use this code, You can see the map that you're on behind the menu.
class Window_Base < Window
        alias :zahraa_menu_init :initialize unless $@
        def initialize(*args, &block)
                zahraa_menu_init(*args, &block)
                menu_opacity?
        end
        def menu_opacity?
                return unless $scene.is_a?(Scene_Menu)
                self.back_opacity = 160
                self.opacity = 160 
        end
end
class Scene_Menu
        alias :zahraa_main_map :main
        def main
    @background = Spriteset_Map.new
                zahraa_main_map
                @background.dispose
        end
end

And as pol and Heretic said, it's per window. The code above works for the main window only. And don't forget to credit Bigace if you decide to use it.

Share this post


Link to post
Share on other sites
  • 0

Thanks to everyone who left an answer! Combining Heretic86 and Polraudio's answers, I managed to get my menu how I want it to look!

 

Also, thank you, Zahraa, but I don't need to display the map. I've already put an image of my choosing behind the menu. ;D Now that I've changed the opacity, I think this is about right:

 

 

menu_by_espada_kitsuki-d7tz1s0.png

 

 

Should I change the opacity anymore, or does it look fine this way?

 

Thanks, everyone! You were all helpful!

Share this post


Link to post
Share on other sites
  • 0

If you decrease the Back Opacity any more, consider finding a script that offers Text Shadows to allow for readability.  White text on an image that has solid white in it is impossible for Players to see.  Shadows help that, or keep Back Opacity a bit higher to maintain contrast.  I think it needs a touch more Opacity, but dont sacrifice Readability.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...