Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # DKP Website from Title
- # Version: 1.0
- # Author: Dark Paladin (rpgmakerweb.com)
- # Date: June 9, 2013
- # Terms of use: You may use this script any way you see fit. Commercial or not.
- # no credit is needed but appriciated.
- # Rpg Maker Vx Ace only
- #==============================================================================
- # Description:
- # This adds a command to the Title screen above new game to launch a website.
- #==============================================================================
- # Instructions:
- # Plug and Play insert above main below materials.
- #
- #==============================================================================
- # *CONFIGURE AREA
- #==============================================================================
- module Dkp_Title_Website_Options
- Websiteaddress = "www.google.com"
- CommandName = "Website"
- #==============================================================================
- # *Do not not edit below this unless you know what your doing!!
- #==============================================================================
- end
- class Window_TitleCommand < Window_Command
- def make_command_list
- add_command(Dkp_Title_Website_Options::CommandName, :website)
- add_command(Vocab::new_game, :new_game)
- add_command(Vocab::continue, :continue, continue_enabled)
- add_command(Vocab::shutdown, :shutdown)
- end
- end
- class Scene_Title
- def create_command_window
- @command_window = Window_TitleCommand.new
- @command_window.set_handler(:website, method(:command_website))
- @command_window.set_handler(:new_game, method(:command_new_game))
- @command_window.set_handler(:continue, method(:command_continue))
- @command_window.set_handler(:shutdown, method(:command_shutdown))
- end
- def command_website
- Sound.play_ok
- Thread.new { system("start #{Dkp_Title_Website_Options::Websiteaddress}") }
- @command_window.activate
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement