class Window_MenuCommand < Window_Command
def make_command_list
add_main_commands
add_save_command
add_game_end_command
end
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
end
end
class Scene_Menu < Scene_MenuBase
def start
super
create_command_window
create_gold_window
end
end
class Scene_Item < Scene_ItemBase
def start
super
create_help_window
create_item_window
@item_window.activate
@item_window.category = :item
@item_window.index = 0
@item_window.select_last
end
def create_item_window
wy = @help_window.height
wh = Graphics.height - wy
@item_window = Window_ItemList.new(0, wy, Graphics.width, wh)
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.set_handler(:ok, method(:on_item_ok))
@item_window.set_handler(:cancel, method(:return_scene))
end
end
class Window_MenuCommand < Window_Command
def make_command_list
add_main_commands
add_save_command
add_game_end_command
end
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
end
end
class Scene_Menu < Scene_MenuBase
def start
super
create_command_window
create_gold_window
end
end
class Scene_Item < Scene_ItemBase
def start
super
create_help_window
create_item_window
@item_window.activate
@item_window.category = :item
@item_window.index = 0
@item_window.select_last
end
def create_item_window
wy = @help_window.height
wh = Graphics.height - wy
@item_window = Window_ItemList.new(0, wy, Graphics.width, wh)
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.set_handler(:ok, method(:on_item_ok))
@item_window.set_handler(:cancel, method(:return_scene))
end
end