class Scene_Menu < Scene_MenuBase #--------------------------------------------------------------------------
# ● 生成指令窗口
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.y = SHIINA::GOLD ?
@gold_window.y - @command_window.height :
Graphics.height - @command_window.height
#==================================================================改动
@command_window.y -= 0
@command_window.x = @command_window.width
#==================================================================
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:formation, method(:command_formation)) if SHIINA::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.set_handler(:pageup, method(:prev_actor))
@command_window.set_handler(:pagedown, method(:next_actor))
# 立绘塞进指令窗口
@command_window.image = @image
end
#--------------------------------------------------------------------------
# ● 生成金钱窗口
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = Graphics.height - @gold_window.height
#==================================================================改动
@gold_window.y -= 200
@gold_window.x = 160
#==================================================================
end
#--------------------------------------------------------------------------
# ● 生成物品窗口
#--------------------------------------------------------------------------
def create_item_window
item_window_y = @category_window.y + (SHIINA::ITEM_TYPE ? @category_window.height : 0)
item_window_height = Graphics.height - item_window_y - (Graphics.height - @command_window.y)
#==================================================================改动
item_window_height = Graphics.height - item_window_y
#==================================================================
@item_window = Window_ItemList.new(@category_window.x, item_window_y, @command_window.width, item_window_height)
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.deactivate
@item_window.visible = false
@item_window.set_handler(:ok, method(:on_item_ok))
@item_window.set_handler(:cancel, method(:on_item_cancel))
@category_window.item_window = @item_window
end
end