Class: UI::Quest::QuestList
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Quest::QuestList
- Defined in:
- docs/4_Systems_800_Quest.rb
Overview
UI element listing the quests
Constant Summary collapse
- NB_QUEST_BUTTON =
Number of buttons generated
7- BUTTON_OFFSET =
Offset between each button
28- BASE_X =
Base X coordinate
19- BASE_Y =
Base Y coordinate
41
Constants inherited from SpriteStack
Instance Attribute Summary collapse
- #buttons ⇒ Array<QuestButton> readonly
-
#index ⇒ Integer
Index of the current active item.
-
#timing ⇒ Symbol
writeonly
The pace of the timing (:slow, :medium, :fast).
Attributes inherited from SpriteStack
#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#change_mode(mode) ⇒ Yuki::Animation::Player
Change the right button mode and return the animation.
-
#initialize(viewport, quest_hash, category) ⇒ QuestList
constructor
Create a new QuestList.
-
#last_index? ⇒ Boolean
Tell if the current index is the same as the last quest for this category.
-
#move_down
Move all the buttons down.
-
#move_up
Move all the buttons up.
-
#number_of_buttons ⇒ Integer
Return the number of buttons registered in the stack.
Methods inherited from 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, quest_hash, category) ⇒ QuestList
Create a new QuestList
647 648 |
# File 'docs/4_Systems_800_Quest.rb', line 647 def initialize(, quest_hash, category) end |
Instance Attribute Details
#buttons ⇒ Array<QuestButton> (readonly)
640 641 642 |
# File 'docs/4_Systems_800_Quest.rb', line 640 def @buttons end |
#index ⇒ Integer
Returns index of the current active item.
638 639 640 |
# File 'docs/4_Systems_800_Quest.rb', line 638 def index @index end |
#timing=(value) ⇒ Symbol
Returns the pace of the timing (:slow, :medium, :fast).
642 643 644 |
# File 'docs/4_Systems_800_Quest.rb', line 642 def timing=(value) @timing = value end |
Instance Method Details
#change_mode(mode) ⇒ Yuki::Animation::Player
Change the right button mode and return the animation
669 670 |
# File 'docs/4_Systems_800_Quest.rb', line 669 def change_mode(mode) end |
#last_index? ⇒ Boolean
Tell if the current index is the same as the last quest for this category
664 665 |
# File 'docs/4_Systems_800_Quest.rb', line 664 def last_index? end |
#move_down
Move all the buttons down
661 662 |
# File 'docs/4_Systems_800_Quest.rb', line 661 def move_down end |
#move_up
Move all the buttons up
658 659 |
# File 'docs/4_Systems_800_Quest.rb', line 658 def move_up end |
#number_of_buttons ⇒ Integer
Return the number of buttons registered in the stack
651 652 |
# File 'docs/4_Systems_800_Quest.rb', line 651 def end |