Class: UI::Shop::Arrow
- Inherits:
-
Bag::Arrow
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- Bag::Arrow
- UI::Shop::Arrow
- Defined in:
- scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb
Instance Attribute Summary
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
- #arrow_filename
- #arrow_pos
-
#initialize(viewport) ⇒ Arrow
constructor
Initialize the arrow Sprite for the UI.
Methods inherited from Bag::Arrow
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) ⇒ Arrow
Initialize the arrow Sprite for the UI
6 7 8 9 10 11 12 |
# File 'scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb', line 6 def initialize() super set_position(*arrow_pos) set_bitmap(arrow_filename, :interface) self.z = 4 @counter = 0 end |
Instance Method Details
#arrow_filename
18 19 20 |
# File 'scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb', line 18 def arrow_filename 'shop/arrow' end |
#arrow_pos
14 15 16 |
# File 'scripts/01450 Systems/00203 Shop/00002 ItemShop UI/00040 Arrow.rb', line 14 def arrow_pos return 105, 79 end |