class QW < Scene_MenuBase
def start
super
create_command_window
end
def create_command_window
@TW = QTW.new
@TW.set_handler(:qqq , method(:qqq ))
@TW.set_handler(:www , method(:www ))
@TW.set_handler(:cancel , method(:return_scene ))
end
def qqq
p "qqq"
end
def www
p "www"
end
end
class QTW < Window_Command
def initialize
super(0, 50)
end
def window_width
return 240
end
def window_height
return 175
end
def make_command_list
main
end
def main
add_command("Вариант 1", :qqq)
add_command("Вариант 2", :www)
add_command("Выйти", :cancel)
end
end
Социальные закладки