Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #
- # Pacman Advanced Creative (PAC) Engine - Opacity
- # 6/6/2011
- # Type: Main
- # Installation: Optional values, arrays.
- # Level: Simple
- #
- #===============================================================================
- #
- # Description:
- # This script lets you choose certain scenes to edit the opacity of, simply.
- # Really, it does nothing else.
- #
- #===============================================================================
- #
- # Instructions:
- # INSTALLATION
- # Paste above main, below materials, as per usual.
- # CONFIGURATION
- # OPA_SCENES is an array in which you enter the class of the scenes you want
- # to change the opacity of. Use commas to separate classes.
- # NEW_OPACITY is the, well, new opacity that you are giving the scenes in
- # OPA_SCENES.
- # NEW_BACK_OPACITY is the background opacity of the scenes in OPA_SCENES.
- # I've trusted you enough not to touch the rest of the script by not making a
- # warning section, because it's only like 3 lines anyway.
- #
- #===============================================================================
- module PAC
- module MAIN
- OPA_SCENES = [Scene_Menu, Scene_Item, Scene_Skill, Scene_Status, Scene_File,
- Scene_Equip, Scene_Party, Scene_End, Scene_Title, Scene_Battle, Scene_Map,
- Scene_Shop, Scene_Name, Scene_Debug, Scene_Gameover]
- NEW_OPACITY = 120
- NEW_BACK_OPACITY = 255
- end
- end
- #==============================================================================
- # ** Window_Base
- #------------------------------------------------------------------------------
- # This is a superclass of all windows in the game.
- #==============================================================================
- class Window_Base
- #--------------------------------------------------------------------------
- # alias listing
- #--------------------------------------------------------------------------
- alias pac_opacity_ini initialize
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize(*args)
- pac_opacity_ini(*args)
- if PAC::MAIN::OPA_SCENES.include?($scene.class)
- self.opacity = PAC::MAIN::NEW_OPACITY
- self.back_opacity = PAC::MAIN::NEW_BACK_OPACITY
- end
- end
- end
- unless $imported != nil
- $imported = {}
- end
- $imported["PAC_Opacity"] = true
- #===============================================================================
- #
- # END OF SCRIPT
- #
- #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement