Class: UI::ContestSkillChoice::ContestMoveButton

Inherits:
SpriteStack show all
Defined in:
docs/6_Contest_01_Scene.rb

Overview

Button of a move

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

#animated, #data, #font_id, #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, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, index) ⇒ ContestMoveButton

Create a new Move button

Parameters:



239
240
# File 'docs/6_Contest_01_Scene.rb', line 239

def initialize(viewport, index)
end

Instance Attribute Details

#index ⇒ Integer (readonly)

Get the index of the button

Returns:

  • (Integer)


235
236
237
# File 'docs/6_Contest_01_Scene.rb', line 235

def index
  @index
end

Instance Method Details

#data=(creature)

Set the data

Parameters:



243
244
# File 'docs/6_Contest_01_Scene.rb', line 243

def data=(creature)
end

#visible=(visible)

Make sure sprite is visible only if the data is right

Parameters:

  • visible (Boolean)


247
248
# File 'docs/6_Contest_01_Scene.rb', line 247

def visible=(visible)
end