Class: UI::Shop::PkmList
Overview
List of Creatures for the shop UI
Defined Under Namespace
Classes: ListButtonPkm
Constant Summary collapse
- AMOUNT =
Number of button in the list
4
- BUTTON_OFFSET =
Offset between each button
38
- ACTIVE_OFFSET =
Offset between active button & inative button
-14 # Base X coordinate
- BASE_X =
Base X coordinate
128
- BASE_Y =
Base Y coordinate
30
Instance Attribute Summary collapse
-
#index ⇒ Integer
Index of the current active item.
Instance Method Summary collapse
-
#done? ⇒ Boolean
Test if the animation is done.
-
#initialize(viewport) ⇒ PkmList
constructor
Create a new ButtonList.
-
#item_list=(list)
Set the item list.
-
#item_price=(list)
Set the price list.
-
#mouse_delta_index ⇒ Integer
Return the delta index with mouse position.
-
#move_down
Move all the buttons down.
-
#move_up
Move all the buttons up.
-
#update
Update the animation.
Constructor Details
#initialize(viewport) ⇒ PkmList
Create a new ButtonList
306 307 |
# File 'docs/4_Systems_203_Shop.rb', line 306 def initialize() end |
Instance Attribute Details
#index ⇒ Integer
Returns index of the current active item.
303 304 305 |
# File 'docs/4_Systems_203_Shop.rb', line 303 def index @index end |
Instance Method Details
#done? ⇒ Boolean
Test if the animation is done
313 314 |
# File 'docs/4_Systems_203_Shop.rb', line 313 def done? end |
#item_list=(list)
Set the item list
327 328 |
# File 'docs/4_Systems_203_Shop.rb', line 327 def item_list=(list) end |
#item_price=(list)
Set the price list
331 332 |
# File 'docs/4_Systems_203_Shop.rb', line 331 def item_price=(list) end |
#mouse_delta_index ⇒ Integer
Return the delta index with mouse position
335 336 |
# File 'docs/4_Systems_203_Shop.rb', line 335 def mouse_delta_index end |
#move_down
Move all the buttons down
323 324 |
# File 'docs/4_Systems_203_Shop.rb', line 323 def move_down end |
#move_up
Move all the buttons up
320 321 |
# File 'docs/4_Systems_203_Shop.rb', line 320 def move_up end |
#update
Update the animation
309 310 |
# File 'docs/4_Systems_203_Shop.rb', line 309 def update end |