Class: UI::Quest::Composition

Inherits:
SpriteStack show all
Defined in:
docs/4_Systems_800_Quest.rb

Overview

UI Composition of the quest scene

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

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

Parameters:



721
722
# File 'docs/4_Systems_800_Quest.rb', line 721

def initialize(viewport, sub_viewport, sub_viewport2, quests)
end

Instance Attribute Details

#button_stateSymbol

Get the current state of the button

Returns:

  • (Symbol)


715
716
717
# File 'docs/4_Systems_800_Quest.rb', line 715

def button_state
  @button_state
end

#scrollbarUI::Quest::ScrollBar

Get the scrollbar element



712
713
714
# File 'docs/4_Systems_800_Quest.rb', line 712

def scrollbar
  @scrollbar
end

Instance Method Details

#change_deployed_mode(mode)

Change the state in the deployed mode

Parameters:

  • mode (Symbol)


749
750
# File 'docs/4_Systems_800_Quest.rb', line 749

def change_deployed_mode(mode)
end

#change_mode_quest(mode)

Change the mode of the first button

Parameters:

  • mode (Symbol)


745
746
# File 'docs/4_Systems_800_Quest.rb', line 745

def change_mode_quest(mode)
end

#current_listQuestList?

Get the current QuestList

Returns:



761
762
# File 'docs/4_Systems_800_Quest.rb', line 761

def current_list
end

#done?Boolean

Tells if all animations are done

Returns:

  • (Boolean)


728
729
# File 'docs/4_Systems_800_Quest.rb', line 728

def done?
end

#indexInteger

Get the current QuestList index

Returns:

  • (Integer)


736
737
# File 'docs/4_Systems_800_Quest.rb', line 736

def index
end

#input_direction(direction, timing = :slow)

Input the direction of the scrolling

Parameters:

  • direction (Symbol)
  • timing (Symbol) (defaults to: :slow)

    the timing of the scrolling



741
742
# File 'docs/4_Systems_800_Quest.rb', line 741

def input_direction(direction, timing = :slow)
end

#scroll_objective_list(direction)

Scroll through the objective list depending on the direction

Parameters:

  • direction (Symbol)


757
758
# File 'docs/4_Systems_800_Quest.rb', line 757

def scroll_objective_list(direction)
end

#swap_rewards(direction)

Swap through the rewards depending on the direction

Parameters:

  • direction (Symbol)


753
754
# File 'docs/4_Systems_800_Quest.rb', line 753

def swap_rewards(direction)
end

#update

Update all animations



724
725
# File 'docs/4_Systems_800_Quest.rb', line 724

def update
end

#update_category(new_category)

Update the current category and launch the corresponding procedure

Parameters:

  • new_category (Symbol)


732
733
# File 'docs/4_Systems_800_Quest.rb', line 732

def update_category(new_category)
end