Class: UI::Quest::CategoryDisplay

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

Overview

UI element displaying a quest category

Constant Summary collapse

TEXT_CATEGORY =

All the category text getters

{primary: [:ext_text, 9006, 5], secondary: [:ext_text, 9006, 6], finished: [:ext_text, 9006, 7], failed: [:ext_text, 9006, 9]}

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, category) ⇒ CategoryDisplay

Initialize the QuestButton component

Parameters:

  • viewport (Viewport)
  • category (Symbol)

    the initial category the player spawns in (here for future compability)



586
587
# File 'docs/4_Systems_800_Quest.rb', line 586

def initialize(viewport, category)
end

Instance Method Details

#update_category_text(category)

Update the category text depending on the new category

Parameters:

  • category (Symbol)


590
591
# File 'docs/4_Systems_800_Quest.rb', line 590

def update_category_text(category)
end