标题: 菜单透明有问题!高手帮忙解决一下! [打印本页] 作者: li807609447 时间: 2009-10-31 08:59 标题: 菜单透明有问题!高手帮忙解决一下! 脚本:
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)
self.back_opacity = 160
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
class Scene_Save
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_End
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end
class Scene_Shop
include Opacity_Menu
alias main_old main
def main
create_screen
main_old
dispose_screen
end
end