Class: UI::AttackDummySprite
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::AttackDummySprite
- Defined in:
- scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb
Overview
Class that show the category of a skill
Constant Summary collapse
- IMAGE_NAME =
Name of the image shown
'battle_attack_dummy'
Instance Attribute Summary
Attributes inherited from SpriteSheet
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Instance Method Summary collapse
-
#data=(object)
Set the object that responds to #atk_class.
-
#initialize(viewport) ⇒ AttackDummySprite
constructor
Create a new category sprite.
Methods inherited from SpriteSheet
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport) ⇒ AttackDummySprite
Create a new category sprite
312 313 314 315 |
# File 'scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb', line 312 def initialize() super(, 1, each_data_type.size) set_bitmap(IMAGE_NAME, :interface) end |
Instance Method Details
#data=(object)
Set the object that responds to #atk_class
319 320 321 |
# File 'scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb', line 319 def data=(object) self.sy = object.type if (self.visible = (object ? true : false)) end |