class Scene_Menu < Scene_MenuBase
alias start_YUN start
def start
start_YUN
@command_window.opacity = 0 #选项窗口透明处理
@gold_window.opacity = 0 #金钱窗口透明处理
@status_window.opacity = 0 #状态窗口透明处理
end
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
###############
@command_window.contents.clear_rect(Rect.new(0,0,160,200)) #清空选项位置文字
##########################################
end
def create_background #创建背景
@background_sprite = Sprite.new
@background_sprite.bitmap = Cache.system("menu") #创建覆盖选项的图片
@background_sprite.z = 200
@background1_sprite = Sprite.new
@background1_sprite.bitmap = Cache.system("menu1") #创建背景图片
@background1_sprite.z = -10
end
def dispose_background #清除
@background_sprite.dispose
@background1_sprite.dispose
end
end