class Window_MenuItem < Window_Command
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
self.openness = 0
open
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# * Update Window Position
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2
self.y = (Graphics.height - height) / 2
end
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_command("Party",

arty)
add_command("Actor", :actor)
add_command(Vocab::cancel, :cancel)
end
end
class Scene_Menu
#--------------------------------------------------------------------------
# * Create Item Window
#--------------------------------------------------------------------------
def create_item_window
@item_window = Window_MenuItem.new
@item_window.x = 0
@item_window.y = 216
@item_window.set_handler

party, method

command_party_items))
@item_window.set_handler

actor, method

command_personal))
@item_window.set_handler

cancel, method

on_item_close))
end
#--------------------------------------------------------------------------
# * Close Item Window
#--------------------------------------------------------------------------
def close_item_window
@item_window.close
update until @item_window.close?
end
#--------------------------------------------------------------------------
# * Item Window Cancel Handling
#--------------------------------------------------------------------------
def on_item_close
@item_window.unselect
@command_window.activate
close_item_window
end
#--------------------------------------------------------------------------
# * [Item] Command On Command Window
#--------------------------------------------------------------------------
def command_item
create_item_window
end
#--------------------------------------------------------------------------
# * [Party] Command On Item Window
#--------------------------------------------------------------------------
def command_party_items
SceneManager.call(Scene_Item)
end
end