Class: BattleUI::PlayerChoice::ItemInfo

Inherits:
UI::SpriteStack show all
Includes:
HideShow
Defined in:
docs/5_Battle_01_Scene.rb

Overview

UI showing the info about the last used item

Constant Summary

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from UI::SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods included from HideShow

#hide, #show

Methods inherited from UI::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_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ ItemInfo

Create a new Item Info box

Parameters:



1305
1306
# File 'docs/5_Battle_01_Scene.rb', line 1305

def initialize(viewport)
end

Instance Attribute Details

#animation_handlerYuki::Animation::Handler{ Symbol => Yuki::Animation::TimedAnimation} (readonly)

Get the animation handler



1302
1303
1304
# File 'docs/5_Battle_01_Scene.rb', line 1302

def animation_handler
  @animation_handler
end

Instance Method Details

#data=(item)

Set the data shown by the UI

Parameters:



1309
1310
# File 'docs/5_Battle_01_Scene.rb', line 1309

def data=(item)
end

#done?Boolean

Tell if the animation is done

Returns:

  • (Boolean)


1316
1317
# File 'docs/5_Battle_01_Scene.rb', line 1316

def done?
end

#update

Update the sprite



1312
1313
# File 'docs/5_Battle_01_Scene.rb', line 1312

def update
end