Advertisement
neutale

Toru Higuruma - Copyright Text

May 22nd, 2020
2,455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.32 KB | None | 0 0
  1. #==============================================================================
  2. # ■ Copyright text on title screen RGSS3 v1.0      MIT License; see git.io/tic
  3. #------------------------------------------------------------------------------
  4. #  Shows copyright text on the title screen.
  5. #==============================================================================
  6.  
  7. class Scene_Title
  8.   #--------------------------------------------------------------------------
  9.   # ● Constant
  10.   #--------------------------------------------------------------------------
  11.   Copyright = "©20XX Your Name."          # Copyright text
  12.   #--------------------------------------------------------------------------
  13.   # ● Create foreground [alias]
  14.   #--------------------------------------------------------------------------
  15.   alias toruic_create_foreground create_foreground
  16.   def create_foreground
  17.     toruic_create_foreground
  18.     draw_copyright
  19.   end
  20.   #--------------------------------------------------------------------------
  21.   # ● [New] Copyright text
  22.   #--------------------------------------------------------------------------
  23.   def draw_copyright
  24.     @foreground_sprite.bitmap.font.size = 24
  25.     rect = Rect.new(0, Graphics.height - 32, Graphics.width, 24)
  26.     @foreground_sprite.bitmap.draw_text(rect, Copyright, 1)
  27.   end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement