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 # #
- #==============================================================================#
- class Heca_Scene_Creator < Scene_Base
- #--------------------------------------------------------------------------
- # Start Script
- #--------------------------------------------------------------------------
- def start
- super
- create_background
- create_command_window
- end
- #--------------------------------------------------------------------------
- # Pre-Termination Processing
- #--------------------------------------------------------------------------
- def pre_terminate
- super
- close_command_window
- end
- #--------------------------------------------------------------------------
- # Transition Speed
- #--------------------------------------------------------------------------
- def transition_speed
- return 20 #Editable
- end
- #--------------------------------------------------------------------------
- # Create Background
- #--------------------------------------------------------------------------
- def create_background
- @spritech = Sprite.new
- @spritech.bitmap = Cache.system(HECASSCENECREATOR::BACKGROUND) #EditableB #EditableFolder
- @spritech.tone.set(0, 0, 0, 180) #Editable (RGB)
- #"system" = Picture Folder
- end
- #--------------------------------------------------------------------------
- # Create Text
- #--------------------------------------------------------------------------
- def make_command_list
- add_command(HECASSCENECREATOR::SAVETEXT, :save) #Editable1
- add_command(HECASSCENECREATOR::LOADTEXT, :load) #Editable2
- add_command(HECASSCENECREATOR::SHUTDOWNTEXT, :shutdown) #Editable3
- add_command(HECASSCENECREATOR::TITLETEXT, :title) #Editable4
- add_command(HECASSCENECREATOR::CANCELTEXT, :cancel) #Editable5
- end
- #--------------------------------------------------------------------------
- # Create Command Window
- #--------------------------------------------------------------------------
- def create_command_window
- @command_window = Heca_Scene_Creator_Base.new
- @command_window.set_handler(:save, method(:command_save)) #Editable1
- @command_window.set_handler(:load, method(:command_load)) #Editable2
- @command_window.set_handler(:shutdown, method(:command_shutdown)) #Editable3
- @command_window.set_handler(:title, method(:command_title)) #Editable4
- @command_window.set_handler(:cancel, method(:command_cancel))#Editable5
- end
- #--------------------------------------------------------------------------
- # Save Command
- #--------------------------------------------------------------------------
- def command_save
- SceneManager.call(Scene_Save) #Editable1
- end
- #--------------------------------------------------------------------------
- # Load Command
- #--------------------------------------------------------------------------
- def command_load
- SceneManager.call(Scene_Load) #Editable2
- end
- #--------------------------------------------------------------------------
- # Shutdown Command
- #--------------------------------------------------------------------------
- def command_shutdown
- close_command_window
- fadeout_all
- SceneManager.exit #Editable3
- end
- #--------------------------------------------------------------------------
- # Title Command
- #--------------------------------------------------------------------------
- def command_title
- SceneManager.call(Scene_Title) #Editable4
- end
- #--------------------------------------------------------------------------
- # Cancel Command
- #--------------------------------------------------------------------------
- def command_cancel
- close_command_window
- return_scene
- end
- #--------------------------------------------------------------------------
- # * Close Command Window
- #--------------------------------------------------------------------------
- def close_command_window
- @command_window.close
- update until @command_window.close?
- end
- end
Add Comment
Please, Sign In to add comment