Guest User

Untitled

a guest
Jan 28th, 2016
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #==============================================================================
  2. # ■ Meow Face Title Overwrite
  3. #------------------------------------------------------------------------------
  4. # Change the title to continue only
  5. #==============================================================================
  6. # How to Use:# [1] Put this script below Meow Face Tile Hue Script
  7. #==============================================================================
  8. module MEOWSTART # Do Not Remove!
  9. #==============================================================================
  10. # Settings Area
  11. #==============================================================================
  12. START_TEXT = "Press ENTER" #change this to any Text you like
  13. #==============================================================================
  14. # End of Settings Area# Edit anything past this line at your own risk!
  15. #==============================================================================
  16. endclass
  17. Window_TitleCommand < Window_Command
  18. def initialize
  19. super(0, 0)
  20. update_placement
  21. self.openness = 0
  22. @cursor_fix = true
  23. @cursor_all = true
  24. open
  25. end
  26. def alignment
  27. return 1
  28. end
  29. def line_height
  30. return 1
  31. end
  32. def window_width
  33. return Graphics.width
  34. end
  35. def make_command_list
  36. add_command("", :continue)
  37. endendclass Scene_Title < Scene_Base
  38. def create_command_window
  39. @command_window = Window_TitleCommand.new
  40. @command_window.opacity = 0
  41. @meowpos = (Graphics.height / 4) * 3
  42. @command_window.y = @meowpos
  43. @command_window.set_handler(:continue, method(:command_continue))
  44. draw_continue
  45. end
  46. def create_foreground
  47. @foreground_sprite = Sprite.new
  48. @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
  49. @foreground_sprite.z = 100
  50. draw_game_title if $data_system.opt_draw_title
  51. end
  52. def draw_continue
  53. @continue_sprite = Sprite.new
  54. @continue_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
  55. @continue_sprite.z = 100
  56. @continue_sprite.bitmap.font.size = 32
  57. rect = Rect.new(0, @meowpos-108, Graphics.width, Graphics.height / 2)
  58. @continue_sprite.bitmap.draw_text(rect, MEOWSTART::START_TEXT, 1)
  59. end
  60. def dispose_foreground
  61. @foreground_sprite.bitmap.dispose
  62. @foreground_sprite.dispose
  63. @continue_sprite.bitmap.dispose
  64. @continue_sprite.dispose
  65. end
  66. def command_continue
  67. if DataManager.save_file_exists?
  68. close_command_window
  69. SceneManager.call(Scene_Load)
  70. else
  71. DataManager.setup_new_game
  72. close_command_window
  73. fadeout_all
  74. $game_map.autoplay
  75. SceneManager.goto(Scene_Map)
  76. end
  77. end
  78. end
RAW Paste Data