class Window_MenuCommand < Window_Command
alias make_command_list_with_sup_command make_command_list
def make_command_list
make_command_list_with_sup_command
add_sup_command
end
def add_command_with_index(name, symbol, index, enabled = true, ext = nil)
@list[index, 0] = {:name=>name, :symbol=>symbol, :enabled=>enabled, :ext=>ext}
end
def add_sup_command
@list.each_with_index{|data, index|
if data[:symbol] == :skill
add_command_with_index("技能升级", :sup, index.next)
return
end
}
add_command("技能升级", :sup)
end
end
class Scene_Menu < Scene_MenuBase
alias create_sup_command create_command_window
def create_command_window
create_sup_command
@command_window.set_handler(:sup, method(:command_sup))
end
def command_sup
SceneManager.call(Scene_SUP)
end
end
class Window_MenuCommand < Window_Command
alias make_command_list_with_sup_command make_command_list
def make_command_list
make_command_list_with_sup_command
add_sup_command
end
def add_command_with_index(name, symbol, index, enabled = true, ext = nil)
@list[index, 0] = {:name=>name, :symbol=>symbol, :enabled=>enabled, :ext=>ext}
end
def add_sup_command
@list.each_with_index{|data, index|
if data[:symbol] == :skill
add_command_with_index("技能升级", :sup, index.next)
return
end
}
add_command("技能升级", :sup)
end
end
class Scene_Menu < Scene_MenuBase
alias create_sup_command create_command_window
def create_command_window
create_sup_command
@command_window.set_handler(:sup, method(:command_sup))
end
def command_sup
SceneManager.call(Scene_SUP)
end
end