Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================#
- # #
- # Heca's Scene Creator #
- # Author: Heca II #
- # Date: 16/01/2016 to /// #
- # Version: (1.0.0) (VX Ace) #
- # Native Language = Spanish #
- # I'm new with this but I know some things x_x #
- #==============================================================================#
- #==============================================================================#
- # #
- # Credits = Me #
- # Free for non-commercial and commercial (you have to credit me) # #
- #==============================================================================#
- #==============================================================================#
- # #
- # Paste script above Main # #
- #==============================================================================#
- #==============================================================================#
- # #
- # I will write "EditableX" with things that need to edit together # #
- #==============================================================================#
- module HECASSCENECREATOR
- SAVETEXT = "Save" #Editable1
- LOADTEXT = "Load" #Editable2
- SHUTDOWNTEXT = "Shutdown" #Editable3
- TITLETEXT = "To Title" #Editable4
- CANCELTEXT = "Exit" #Editable5
- BACKGROUND = "Actor2_Ougi" #EditableB
- end
- class Heca_Scene_Creator_Base < Window_Command
- #--------------------------------------------------------------------------
- # Initialize Command Selection Position (Class Method)
- #--------------------------------------------------------------------------
- def self.init_command_position
- @@last_command_symbol = nil
- end
- #--------------------------------------------------------------------------
- # Object Initialization
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0) #Editable (x,y)
- end
- #--------------------------------------------------------------------------
- # Get Window Width
- #--------------------------------------------------------------------------
- def window_width
- return 160 #Editable
- end
- #--------------------------------------------------------------------------
- # Get Number of Lines to Show
- #--------------------------------------------------------------------------
- def visible_line_number
- item_max #Editable but isn't important x_x
- end
- #--------------------------------------------------------------------------
- # Create Command List
- #--------------------------------------------------------------------------
- def make_command_list
- add_save_command #Editable1
- add_load_command #Editable 2
- add_title_shutdown_commands #Editable 3-4
- add_cancel_command #Editable 5
- end
- #--------------------------------------------------------------------------
- # Add Save Command to List
- #--------------------------------------------------------------------------
- def add_save_command
- add_command(HECASSCENECREATOR::SAVETEXT, :save) #Editable 1
- end
- #--------------------------------------------------------------------------
- # Add Load to Command List
- #--------------------------------------------------------------------------
- def add_load_command
- add_command(HECASSCENECREATOR::LOADTEXT, :load) #Editable 2
- end
- #--------------------------------------------------------------------------
- # For Adding To Title and Shutdown Commands
- #--------------------------------------------------------------------------
- def add_title_shutdown_commands
- add_command(HECASSCENECREATOR::SHUTDOWNTEXT, :shutdown) #Editable 3
- add_command(HECASSCENECREATOR::TITLETEXT, :title) #Editable 4
- end
- #--------------------------------------------------------------------------
- # Add Cancel to Command List
- #--------------------------------------------------------------------------
- def add_cancel_command
- add_command(HECASSCENECREATOR::CANCELTEXT, :cancel) #Editable 5
- end
- #--------------------------------------------------------------------------
- # * Processing When OK Button Is Pressed
- #--------------------------------------------------------------------------
- def process_ok
- @@last_command_symbol = current_symbol
- super
- end
- end
Add Comment
Please, Sign In to add comment