Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_CustomCommand < Window_Command
- def initialize
- super(0,0)
- end
- def make_command_list
- add_command("Command 1", :cmd1)
- add_command("Command 2", :cmd2)
- add_command("Command 3", :cmd3)
- end
- def update_help
- @help_window.contents.clear
- rect = @help_window.contents.rect
- @help_window.draw_text(rect, "Ini index nomor #{index}", 1)
- end
- end
- DataManager.init
- def updates
- Graphics.update
- Input.update
- @selectable.update
- @help.update
- end
- @selectable = Window_CustomCommand.new
- @help = Window_Base.new(0, Graphics.height - 48, Graphics.width, 48)
- @selectable.help_window = @help
- updates while true
Advertisement
Add Comment
Please, Sign In to add comment