Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ■ Meow Face Title Overwrite
- #------------------------------------------------------------------------------
- # Change the title to continue only
- #==============================================================================
- # How to Use:# [1] Put this script below Meow Face Tile Hue Script
- #==============================================================================
- module MEOWSTART # Do Not Remove!
- #==============================================================================
- # Settings Area
- #==============================================================================
- START_TEXT = "Press ENTER" #change this to any Text you like
- #==============================================================================
- # End of Settings Area# Edit anything past this line at your own risk!
- #==============================================================================
- endclass
- Window_TitleCommand < Window_Command
- def initialize
- super(0, 0)
- update_placement
- self.openness = 0
- @cursor_fix = true
- @cursor_all = true
- open
- end
- def alignment
- return 1
- end
- def line_height
- return 1
- end
- def window_width
- return Graphics.width
- end
- def make_command_list
- add_command("", :continue)
- endendclass Scene_Title < Scene_Base
- def create_command_window
- @command_window = Window_TitleCommand.new
- @command_window.opacity = 0
- @meowpos = (Graphics.height / 4) * 3
- @command_window.y = @meowpos
- @command_window.set_handler(:continue, method(:command_continue))
- draw_continue
- end
- def create_foreground
- @foreground_sprite = Sprite.new
- @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
- @foreground_sprite.z = 100
- draw_game_title if $data_system.opt_draw_title
- end
- def draw_continue
- @continue_sprite = Sprite.new
- @continue_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
- @continue_sprite.z = 100
- @continue_sprite.bitmap.font.size = 32
- rect = Rect.new(0, @meowpos-108, Graphics.width, Graphics.height / 2)
- @continue_sprite.bitmap.draw_text(rect, MEOWSTART::START_TEXT, 1)
- end
- def dispose_foreground
- @foreground_sprite.bitmap.dispose
- @foreground_sprite.dispose
- @continue_sprite.bitmap.dispose
- @continue_sprite.dispose
- end
- def command_continue
- if DataManager.save_file_exists?
- close_command_window
- SceneManager.call(Scene_Load)
- else
- DataManager.setup_new_game
- close_command_window
- fadeout_all
- $game_map.autoplay
- SceneManager.goto(Scene_Map)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement