Advertisement
nio_kasgami

luna engine - title screen snipset

Aug 1st, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.15 KB | None | 0 0
  1. class Window_TitleCommand < Window_Command
  2.     include Nio_luna::Title_screen
  3.    
  4.  #--------------------------------------------------------------------------
  5.  # ● overwrite method: initialize
  6.  #--------------------------------------------------------------------------
  7.     def initialize
  8.          super(0, 0)
  9.     update_placement
  10.     self.opacity = 0
  11. #    contents.opacity = 0
  12.     select_symbol(:continue) if continue_enabled
  13.     self.openness = 0
  14.     #check_opacity
  15.     open
  16.     end
  17.  
  18.   def update_open
  19.     self.opacity += 3
  20.     self.openness += 3
  21.     @opening = false if open?
  22.   end
  23.  
  24.  
  25.  
  26.  #----------------------------------------------------------------------------
  27.  # ○ new method: check_opacity
  28.  #----------------------------------------------------------------------------
  29.     def check_opacity
  30.         self.opacity = COMMANDS[:opacity]
  31.     end
  32.  
  33.  #--------------------------------------------------------------------------
  34.  # ● overwrite method: update_placement
  35.  #--------------------------------------------------------------------------   
  36.     def update_placement
  37.     self.x = COMMANDS[:x]
  38.     self.y = COMMANDS[:y]
  39.   end
  40. end#end Window_TitleCommand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement