#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
# 处理标题画面的类。
#==============================================================================
#--------------------------------------------------------------------------
# ● 更新画面
#--------------------------------------------------------------------------
def update
super
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0 #New game
command_new_game
when 1 # Continue
command_continue
when 2 # Shutdown
command_shutdown
when 3 # 测试地图
command_ceshi
end
end
end
#--------------------------------------------------------------------------
# ● 生成命令窗口
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::new_game
s2 = Vocab::continue
s3 = Vocab::shutdown
s4 = "其他模式"
@command_window = Window_Command.new(270, [s1, s2, s3, s4])
# <--- @command_window = Window_Command.new(172, [s1, s2, s3, s4])
@command_window.x = (1024 - @command_window.width) / 2
@command_window.y = 450 #<------ @command_window.y = 288
if @continue_enabled # 如果「继续」有效
@command_window.index = 1 # 将光标移至「继续游戏」
else # 否则则将「继续游戏」半透明化
@command_window.draw_item(1, false)
end
@command_window.openness = 0
@command_window.open
end
#--------------------------------------------------------------------------
# ● 设置其他模式
#--------------------------------------------------------------------------
def self.setup_zhizuo
create_game_objects
$game_party.setup_starting_members
$game_map.setup(1)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
Graphics.frame_count = 0
end
#--------------------------------------------------------------------------
# ● 生成指令列表
#--------------------------------------------------------------------------
def make_command_list
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command("制作者名单", :zhizuo)
add_command(Vocab::shutdown, :shutdown)
end
#--------------------------------------------------------------------------
# ● 生成指令窗口
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_TitleCommand.new
@command_window.set_handler(:new_game, method(:command_new_game))
@command_window.set_handler(:continue, method(:command_continue))
@command_window.set_handler(:zhizuo, method(:command_zhizuo))
@command_window.set_handler(:shutdown, method(:command_shutdown))
end
#--------------------------------------------------------------------------
# ● 指令 [制作者名单]
#--------------------------------------------------------------------------
def command_zhizuo
DataManager.setup_zhizuo
close_command_window
fadeout_all
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |