Class: UI::Storage::Cursor
- Inherits:
-
ShaderedSprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- UI::Storage::Cursor
- Defined in:
- docs/4_Systems_200_Storage.rb
Overview
Class responsive of showing the cursor
Constant Summary collapse
- BOX_INITIAL_POSITION =
Box initial position
[17, 42]
- PARTY_POSITIONS =
Party positions
[[233, 50], [281, 66], [233, 98], [281, 115], [233, 146], [281, 162]]
- ARROW_IMAGES =
List of graphics depending on the selection mode
{battle: 'pc/arrow_red', pokemon: 'pc/arrow_blue', grouped: 'pc/arrow_green', item: 'pc/arrow_yellow'}
Instance Attribute Summary collapse
-
#inbox ⇒ Boolean
Get the inbox property /!\ Always update this before index.
-
#index ⇒ Integer
Get the index.
-
#mode ⇒ Symbol
Get the current mode.
-
#select_box ⇒ Boolean
Get the select box mode.
-
#selection_mode ⇒ Symbol
Get the current selection mode.
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
-
#done? ⇒ Boolean
Tell if the animation is done.
-
#force_index(inbox, index)
Force an index (mouse operation).
-
#initialize(viewport, index, inbox, mode_handler) ⇒ Cursor
constructor
Create a new cusror object.
-
#max_index ⇒ Integer
Get the max index.
-
#update
Update the animation.
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, index, inbox, mode_handler) ⇒ Cursor
Create a new cusror object
369 370 |
# File 'docs/4_Systems_200_Storage.rb', line 369 def initialize(, index, inbox, mode_handler) end |
Instance Attribute Details
#inbox ⇒ Boolean
Get the inbox property /!\ Always update this before index
348 349 350 |
# File 'docs/4_Systems_200_Storage.rb', line 348 def inbox @inbox end |
#index ⇒ Integer
Get the index
345 346 347 |
# File 'docs/4_Systems_200_Storage.rb', line 345 def index @index end |
#mode ⇒ Symbol
Get the current mode
357 358 359 |
# File 'docs/4_Systems_200_Storage.rb', line 357 def mode @mode end |
#select_box ⇒ Boolean
Get the select box mode
351 352 353 |
# File 'docs/4_Systems_200_Storage.rb', line 351 def select_box @select_box end |
#selection_mode ⇒ Symbol
Get the current selection mode
354 355 356 |
# File 'docs/4_Systems_200_Storage.rb', line 354 def selection_mode @selection_mode end |
Instance Method Details
#done? ⇒ Boolean
Tell if the animation is done
376 377 |
# File 'docs/4_Systems_200_Storage.rb', line 376 def done? end |
#force_index(inbox, index)
Force an index (mouse operation)
389 390 |
# File 'docs/4_Systems_200_Storage.rb', line 389 def force_index(inbox, index) end |
#max_index ⇒ Integer
Get the max index
380 381 |
# File 'docs/4_Systems_200_Storage.rb', line 380 def max_index end |
#update
Update the animation
372 373 |
# File 'docs/4_Systems_200_Storage.rb', line 372 def update end |