Class: UI::Shop::PkmScrollBar
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- UI::Shop::PkmScrollBar
- Defined in:
- docs/4_Systems_203_Shop.rb
Overview
Scrollbar for the Creature shop
Constant Summary collapse
- HEIGHT =
Number of pixel the scrollbar use to move the button
128
- BASE_Y =
Base Y for the scrollbar
33
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#index ⇒ Integer
Current index of the scrollbar.
-
#max_index ⇒ Integer
Number of possible indexes.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport) ⇒ PkmScrollBar
constructor
Create a new scrollbar.
Methods inherited from UI::SpriteStack
#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport) ⇒ PkmScrollBar
Create a new scrollbar
439 440 |
# File 'docs/4_Systems_203_Shop.rb', line 439 def initialize() end |
Instance Attribute Details
#index ⇒ Integer
Returns current index of the scrollbar.
430 431 432 |
# File 'docs/4_Systems_203_Shop.rb', line 430 def index @index end |
#max_index ⇒ Integer
Returns number of possible indexes.
432 433 434 |
# File 'docs/4_Systems_203_Shop.rb', line 432 def max_index @max_index end |