module Opacity_Menu
def create_screen
@screen = Spriteset_Map.new
end
def dispose_screen
@screen.dispose
end
end
module HS
OPACITY = 160
end
class Window_Base < Window
def initialize(x, y, width, height)
super()
@windowskin_name = $game_system.windowskin_name
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
self.x = x
self.y = y
self.width = width
self.height = height
self.z = 100
if $scene.is_a?(Scene_Menu) or
$scene.is_a?(Scene_Item) or
$scene.is_a?(Scene_Skill) or
$scene.is_a?(Scene_Equip) or
$scene.is_a?(Scene_Status) or
$scene.is_a?(Scene_Save) or
$scene.is_a?(Scene_End) or
$scene.is_a?(Scene_Shop) or
self.back_opacity = HS::OPACITY
end
end
end
class Scene_Menu
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Item
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Skill
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Equip
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Status
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end