IceDragon200

WindowCursorFix

Nov 5th, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.77 KB | None | 0 0
  1. class Window_ActorMenuStatus
  2.  
  3.   alias :wncrsfix_initialize :initialize unless $@
  4.   def initialize( *args, &block )
  5.     wncrsfix_initialize( *args, &block )
  6.     file = STRRGSS2::WCURSOR_FN
  7.     @strcursor = Sprite_WindowCursor.new( file, nil )
  8.   end
  9.  
  10.   alias :wncrsfix_dispose :dispose unless $@
  11.   def dispose( *args, &block )
  12.     wncrsfix_dispose( *args, &block )
  13.     @strcursor.dispose()
  14.   end
  15.  
  16.   alias :wncrsfix_update :update unless $@
  17.   def update( *args, &block )
  18.     wncrsfix_update( *args, &block )
  19.     @strcursor.x = self.x - 8
  20.     @strcursor.y = self.y + ((self.height - @strcursor.height) / 2)
  21.     @strcursor.z = self.z + 1
  22.     @strcursor.visible = self.visible && self.active
  23.     @strcursor.opacity = 255
  24.     @strcursor.update()
  25.   end
  26.  
  27. end
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment