@command_window.y = @show ? 416 : 360
@command_window.index = @menu_index
@command_window.refresh
if $game_party.members.size == 0 # 同伴人数为 0 的情况下
@command_window.draw_item(0, false) # 物品无效化
@command_window.draw_item(1, false) # 特技无效化
@command_window.draw_item(2, false) # 装备无效化
@command_window.draw_item(3, false) # 状态无效化
end
if $game_system.save_disabled # 禁止存档的情况下
@command_window.draw_item(4, false) # 存档无效化
end
end
#--------------------------------------------------------------------------
# ● 更新指令选择
#--------------------------------------------------------------------------
def update_command_selection
if Input.trigger?(Input::B)
loop do
break if @help_window.y <= -56
@help_window.y -= 8
@gold_window.y += 8
@command_window.y += 8
Graphics.update
end
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # 物品
@help_window.set_text("")
snapshot_for_sub_menu
$scene = Scene_Item.new
when 1,2,3 # 特技、装备、状态
@help_window.set_text("")
snapshot_for_sub_menu
start_actor_selection
when 4 # 存档
@help_window.set_text("")
snapshot_for_sub_menu
$scene = Scene_File.new(true, false, false)
when 5 #新菜单 修改
@help_window.set_text("")
snapshot_for_sub_menu
$scene = Scene_Lvup.new
when 6 # 游戏结束
@help_window.set_text("")
snapshot_for_sub_menu
$scene = Scene_End.new
end
end
end