Class: UI::Quest::Composition
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Quest::Composition
- Defined in:
- docs/01450_Systems_08000_Quest.rb
Overview
UI Composition of the quest scene
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#button_state ⇒ Symbol
Get the current state of the button.
-
#scrollbar ⇒ UI::Quest::ScrollBar
Get the scrollbar element.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#change_deployed_mode(mode)
Change the state in the deployed mode.
-
#change_mode_quest(mode)
Change the mode of the first button.
-
#current_list ⇒ QuestList?
Get the current QuestList.
-
#done? ⇒ Boolean
Tells if all animations are done.
-
#index ⇒ Integer
Get the current QuestList index.
-
#initialize(viewport, sub_viewport, sub_viewport2, quests) ⇒ Composition
constructor
Create the Composition of the scene.
-
#input_direction(direction, timing = :slow)
Input the direction of the scrolling.
-
#scroll_objective_list(direction)
Scroll through the objective list depending on the direction.
-
#swap_rewards(direction)
Swap through the rewards depending on the direction.
-
#update
Update all animations.
-
#update_category(new_category)
Update the current category and launch the corresponding procedure.
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_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, sub_viewport, sub_viewport2, quests) ⇒ Composition
Create the Composition of the scene
678 679 |
# File 'docs/01450_Systems_08000_Quest.rb', line 678 def initialize(, , , quests) end |
Instance Attribute Details
#button_state ⇒ Symbol
Get the current state of the button
672 673 674 |
# File 'docs/01450_Systems_08000_Quest.rb', line 672 def @button_state end |
#scrollbar ⇒ UI::Quest::ScrollBar
Get the scrollbar element
669 670 671 |
# File 'docs/01450_Systems_08000_Quest.rb', line 669 def @scrollbar end |
Instance Method Details
#change_deployed_mode(mode)
Change the state in the deployed mode
706 707 |
# File 'docs/01450_Systems_08000_Quest.rb', line 706 def change_deployed_mode(mode) end |
#change_mode_quest(mode)
Change the mode of the first button
702 703 |
# File 'docs/01450_Systems_08000_Quest.rb', line 702 def change_mode_quest(mode) end |
#current_list ⇒ QuestList?
Get the current QuestList
718 719 |
# File 'docs/01450_Systems_08000_Quest.rb', line 718 def current_list end |
#done? ⇒ Boolean
Tells if all animations are done
685 686 |
# File 'docs/01450_Systems_08000_Quest.rb', line 685 def done? end |
#index ⇒ Integer
Get the current QuestList index
693 694 |
# File 'docs/01450_Systems_08000_Quest.rb', line 693 def index end |
#input_direction(direction, timing = :slow)
Input the direction of the scrolling
698 699 |
# File 'docs/01450_Systems_08000_Quest.rb', line 698 def input_direction(direction, timing = :slow) end |
#scroll_objective_list(direction)
Scroll through the objective list depending on the direction
714 715 |
# File 'docs/01450_Systems_08000_Quest.rb', line 714 def scroll_objective_list(direction) end |
#swap_rewards(direction)
Swap through the rewards depending on the direction
710 711 |
# File 'docs/01450_Systems_08000_Quest.rb', line 710 def swap_rewards(direction) end |
#update
Update all animations
681 682 |
# File 'docs/01450_Systems_08000_Quest.rb', line 681 def update end |
#update_category(new_category)
Update the current category and launch the corresponding procedure
689 690 |
# File 'docs/01450_Systems_08000_Quest.rb', line 689 def update_category(new_category) end |