Class: UI::Quest::ObjectiveList

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

Overview

UI element showing the object list

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

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, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ ObjectiveList

Initialize the ObjectiveList component

Parameters:



687
688
# File 'docs/4_Systems_800_Quest.rb', line 687

def initialize(viewport)
end

Instance Method Details

#scroll_text(direction)

Scroll the text in the right direction if there’s more than 4 objectives

Parameters:

  • direction (Symbol)

    :UP or :DOWN



695
696
# File 'docs/4_Systems_800_Quest.rb', line 695

def scroll_text(direction)
end

#update_text(data)

Update the text depending on the forwarded data

Parameters:

  • data (Array<Array<String, Boolean>>)


691
692
# File 'docs/4_Systems_800_Quest.rb', line 691

def update_text(data)
end