Advertisement
kurashi

Version Text [RGSS3]

Apr 15th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.86 KB | None | 0 0
  1. module V
  2.   V = "Alpha V 1.1" # Edit this string for the contents of your window.
  3. end
  4.  
  5. ####                              ####
  6. ### DO NOT EDIT BEYOND THIS POINT. ###
  7. ####                              ####
  8.  
  9. ### Version ID Window ###
  10. class VersionID < Window_Base
  11.   def initialize()
  12.     textsize = (V::V.length * 7)
  13.     y = (Graphics.height - 24)
  14.     x = (Graphics.width - textsize)
  15.     super( x, y, textsize, 50 )
  16.     self.back_opacity = 0
  17.     self.opacity = 0
  18.     self.z = 999
  19.     reset_font_settings
  20.     version_box
  21.   end
  22.   def reset_font_settings
  23.     change_color(normal_color)
  24.     contents.font.size = 12
  25.     contents.font.bold = Font.default_bold
  26.     contents.font.italic = Font.default_italic
  27.   end
  28.   def version_box
  29.     draw_text(0, 0, 240, 12, V::V)
  30.   end
  31. end
  32. ### Scene_Title ###
  33. class Scene_Title
  34.   alias title_window create_command_window
  35.   def create_command_window
  36.     title_window
  37.     @version_window = VersionID.new
  38.   end
  39. end
  40. ### Scene_Map ###
  41. class Scene_Map
  42.   alias map_windows create_all_windows
  43.   def create_all_windows
  44.     map_windows
  45.     @version_window = VersionID.new
  46.   end
  47. end
  48. ### Scene_MenuBase ###
  49. class Scene_MenuBase
  50.   alias menubase_window create_help_window
  51.   def create_help_window
  52.     menubase_window
  53.     @version_window = VersionID.new
  54.   end
  55. end
  56. ### Scene_Menu ###
  57. class Scene_Menu
  58.   alias menu_window create_command_window
  59.   def create_command_window
  60.     menu_window
  61.     @version_window = VersionID.new
  62.   end
  63. end
  64. ### Scene_Status ###
  65. class Scene_Status
  66.   alias status_window start
  67.   def start
  68.     status_window
  69.     @version_window = VersionID.new
  70.   end
  71. end
  72. ### Scene_File ###
  73. class Scene_File
  74.   alias file_window create_help_window
  75.   def create_help_window
  76.     file_window
  77.     @version_window = VersionID.new
  78.   end
  79. end
  80. ### Scene_End ###
  81. class Scene_End
  82.   alias end_window create_command_window
  83.   def create_command_window
  84.     end_window
  85.     @version_window = VersionID.new
  86.   end
  87. end
  88. ### Scene_Shop ###
  89. class Scene_Shop
  90.   alias shop_window create_help_window
  91.   def create_help_window
  92.     shop_window
  93.     @version_window = VersionID.new
  94.   end
  95. end
  96. ### Scene_Name ###
  97. class Scene_Name
  98.   alias name_version_window start
  99.   def start
  100.     name_version_window
  101.     @version_window = VersionID.new
  102.   end
  103. end
  104. ### Scene_Debug ###
  105. class Scene_Debug
  106.   alias debug_version_window create_debug_help_window
  107.   def create_debug_help_window
  108.     debug_version_window
  109.     @version_window = VersionID.new
  110.   end
  111. end
  112. ### Scene_Battle ###
  113. class Scene_Battle
  114.   alias debug_version_window create_all_windows
  115.   def create_all_windows
  116.     debug_version_window
  117.     @version_window = VersionID.new
  118.   end
  119. end
  120. ### Scene_Gameover ###
  121. class Scene_Gameover
  122.   alias gameover_version_window create_background
  123.   def create_background
  124.     gameover_version_window
  125.     @version_window = VersionID.new
  126.   end
  127. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement