Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================#
- # ** ICS - Magic Shop (Mouse Patch)
- #==============================================================================#
- # ** Date Created : 11/05/2011
- # ** Date Modified : 11/05/2011
- # ** Created By : IceDragon
- #==============================================================================#
- # ** Rect
- #==============================================================================#
- class Rect
- #--------------------------------------------------------------------------#
- # * new-method :to_a
- #--------------------------------------------------------------------------#
- def to_a() ; return self.x, self.y, self.width, self.height ; end
- end
- #==============================================================================#
- # ** Window_MagicShopStatus
- #==============================================================================#
- class Window_MagicShopStatus
- #--------------------------------------------------------------------------#
- # * super-method :update
- #--------------------------------------------------------------------------#
- def update()
- super()
- for i in 0...@response_rects.size ;
- rect = @response_rects[i]
- if Mouse.area?( self.x+(rect.x+16), self.y+(rect.y+16),
- rect.width, rect.height ) ; @index = i ; end
- end if self.active
- end
- #--------------------------------------------------------------------------#
- # * alias-method :refresh
- #--------------------------------------------------------------------------#
- alias :mgshp_mspatch_refresh :refresh unless $@
- def refresh()
- mgshp_mspatch_refresh()
- @response_rects ||= [] ; @response_rects.clear()
- for i in 0...@item_max ; @response_rects[i] = item_rect( i ) ; end
- end
- #--------------------------------------------------------------------------#
- # * overwrite-method :update_mouse
- #--------------------------------------------------------------------------#
- def update_mouse()
- end
- end
- #=*==========================================================================*=#
- # ** END OF FILE
- #=*==========================================================================*=#
Advertisement
Add Comment
Please, Sign In to add comment