#encoding:utf-8
#==============================================================================
# ■ Scene_End
#------------------------------------------------------------------------------
# 结束游戏画面
#==============================================================================
class Scene_newskill < Scene_MenuBase
#--------------------------------------------------------------------------
# ● 开始处理
#--------------------------------------------------------------------------
def start
super
create_command_window
end
#--------------------------------------------------------------------------
# ● 结束前处理
#--------------------------------------------------------------------------
def pre_terminate
super
close_command_window
end
#--------------------------------------------------------------------------
# ● 生成背景
#--------------------------------------------------------------------------
def create_background
super
@background_sprite.tone.set(0, 0, 0, 128)
end
#--------------------------------------------------------------------------
# ● 生成指令窗口
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_nskill.new
@command_window.set_handler(:AddSkill, method(:command_AddSkill))
@command_window.set_handler(:Skill, method(:command_Skill))
@command_window.set_handler(:cancel, method(:return_scene))
end
#--------------------------------------------------------------------------
# ● 关闭指令窗口
#--------------------------------------------------------------------------
def close_command_window
@command_window.close
end
#--------------------------------------------------------------------------
# ● 指令“返回标题”
#--------------------------------------------------------------------------
def command_AddSkill
SceneManager.call(Scene_AddSkill)
end
#--------------------------------------------------------------------------
# ● 指令“退出”
#--------------------------------------------------------------------------
def command_Skill
SceneManager.call(Scene_Skill)
end
end