Guest User

Heca's Scene Creator Base

a guest
Jan 16th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 5.02 KB | None | 0 0
  1. #==============================================================================#
  2. #                                                                              #
  3. #  Heca's Scene Creator                                                        #
  4. #  Author: Heca II                                                             #
  5. #  Date: 16/01/2016 to ///                                                     #
  6. #  Version: (1.0.0) (VX Ace)                                                   #
  7. #  Native Language = Spanish                                                   #
  8. #  I'm new with this but I know some things x_x                                #
  9. #==============================================================================#
  10. #==============================================================================#
  11. #                                                                              #
  12. #  Credits = Me                                                                #
  13. #  Free for non-commercial and commercial (you have to credit me)              #                            #
  14. #==============================================================================#
  15. #==============================================================================#
  16. #                                                                              #
  17. #  Paste script above Main                                                     #                             #
  18. #==============================================================================#
  19. #==============================================================================#
  20. #                                                                              #
  21. #  I will write "EditableX" with things that need to edit together             #                             #
  22. #==============================================================================#
  23. module HECASSCENECREATOR
  24.   SAVETEXT = "Save" #Editable1
  25.   LOADTEXT = "Load" #Editable2
  26.   SHUTDOWNTEXT = "Shutdown" #Editable3
  27.   TITLETEXT = "To Title" #Editable4
  28.   CANCELTEXT = "Exit" #Editable5
  29.   BACKGROUND = "Actor2_Ougi" #EditableB
  30.  
  31. end
  32.  
  33. class Heca_Scene_Creator_Base < Window_Command
  34.   #--------------------------------------------------------------------------
  35.   # Initialize Command Selection Position (Class Method)
  36.   #--------------------------------------------------------------------------
  37.   def self.init_command_position
  38.     @@last_command_symbol = nil
  39.   end
  40.   #--------------------------------------------------------------------------
  41.   # Object Initialization
  42.   #--------------------------------------------------------------------------
  43.   def initialize
  44.     super(0, 0) #Editable (x,y)
  45.   end
  46.   #--------------------------------------------------------------------------
  47.   # Get Window Width
  48.   #--------------------------------------------------------------------------
  49.   def window_width
  50.     return 160 #Editable
  51.   end
  52.   #--------------------------------------------------------------------------
  53.   # Get Number of Lines to Show
  54.   #--------------------------------------------------------------------------
  55.   def visible_line_number
  56.     item_max #Editable but isn't important x_x
  57.   end
  58.   #--------------------------------------------------------------------------
  59.   #  Create Command List
  60.   #--------------------------------------------------------------------------
  61.   def make_command_list
  62.     add_save_command #Editable1
  63.     add_load_command #Editable 2
  64.     add_title_shutdown_commands #Editable 3-4
  65.     add_cancel_command #Editable 5
  66.   end
  67.   #--------------------------------------------------------------------------
  68.   #  Add Save Command to List
  69.   #--------------------------------------------------------------------------
  70.   def add_save_command
  71.     add_command(HECASSCENECREATOR::SAVETEXT,   :save) #Editable 1
  72.   end
  73.   #--------------------------------------------------------------------------
  74.   #  Add Load to Command List
  75.   #--------------------------------------------------------------------------
  76.   def add_load_command
  77.     add_command(HECASSCENECREATOR::LOADTEXT, :load) #Editable 2
  78.   end
  79.   #--------------------------------------------------------------------------
  80.   #  For Adding To Title and Shutdown Commands
  81.   #--------------------------------------------------------------------------
  82.   def add_title_shutdown_commands
  83.      add_command(HECASSCENECREATOR::SHUTDOWNTEXT, :shutdown) #Editable 3
  84.      add_command(HECASSCENECREATOR::TITLETEXT, :title) #Editable 4
  85.   end
  86.   #--------------------------------------------------------------------------
  87.   #  Add Cancel to Command List
  88.   #--------------------------------------------------------------------------
  89.   def add_cancel_command
  90.     add_command(HECASSCENECREATOR::CANCELTEXT, :cancel) #Editable 5
  91.   end
  92.   #--------------------------------------------------------------------------
  93.   # * Processing When OK Button Is Pressed
  94.   #--------------------------------------------------------------------------
  95.   def process_ok
  96.     @@last_command_symbol = current_symbol
  97.     super
  98.   end
  99. end
Add Comment
Please, Sign In to add comment