Class: UI::Quest::RewardButton
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Quest::RewardButton
- Defined in:
- scripts/01450 Systems/08000 Quest/00002 UI_Quest/00110 RewardScreen.rb
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport, x, y, reward) ⇒ RewardButton
constructor
Create the RewardButton.
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
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(, x, y, reward) super(, x, y) @viewport = @reward = reward create_frame if @reward determine_reward create_icon create_reward_name create_reward_quantity end end |