Class: UI::Quest::RewardButton

Inherits:
SpriteStack show all
Defined in:
scripts/01450 Systems/08000 Quest/00002 UI_Quest/00110 RewardScreen.rb

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, x, y, reward) ⇒ RewardButton

Create the RewardButton

Parameters:



76
77
78
79
80
81
82
83
84
85
86
87
# File 'scripts/01450 Systems/08000 Quest/00002 UI_Quest/00110 RewardScreen.rb', line 76

def initialize(viewport, x, y, reward)
  super(viewport, x, y)
  @viewport = viewport
  @reward = reward
  create_frame
  if @reward
    determine_reward
    create_icon
    create_reward_name
    create_reward_quantity
  end
end