Class: UI::Storage::SelectionModeSprite
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::Storage::SelectionModeSprite
- Defined in:
- docs/4_Systems_200_Storage.rb
Overview
Sprite showing the current selection mode
Constant Summary collapse
- SHEET_INDEXES =
List of sheet index for all modes
{detailed: 0, fast: 1, grouped: 2}
- SHEET_SIZE =
Constant telling how much section there’s in the sprite
[1, 7]
Instance Attribute Summary collapse
-
#selection_mode ⇒ Symbol
Get the current mode.
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
-
#initialize(viewport, mode_handler) ⇒ SelectionModeSprite
constructor
Create a new SelectionModeSprite.
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, mode_handler) ⇒ SelectionModeSprite
Create a new SelectionModeSprite
248 249 |
# File 'docs/4_Systems_200_Storage.rb', line 248 def initialize(, mode_handler) end |
Instance Attribute Details
#selection_mode ⇒ Symbol
Get the current mode
240 241 242 |
# File 'docs/4_Systems_200_Storage.rb', line 240 def selection_mode @selection_mode end |