Class: UI::Storage::Summary

Inherits:
UI::SpriteStack show all
Defined in:
docs/01450_Systems_00200_Storage.rb

Overview

Stack responsive of showing a summary

Constant Summary collapse

POSITION =

Position of the summary depending on the state

[[210, 200], [210, 10]]
LETTER_POSITION =

Position of the letter depending on the state

[[1, 0], [95, 15]]
TEXT_TRANSITION_TIME =

Time between each text transition

2

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 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, reduced) ⇒ Summary

Create a new summary object

Parameters:

  • viewport (Viewport)
  • reduced (Boolean)

    if the UI is initially reduced or not



870
871
# File 'docs/01450_Systems_00200_Storage.rb', line 870

def initialize(viewport, reduced)
end

Instance Attribute Details

#reducedBoolean (readonly)

Tell if the UI is reduced or not

Returns:

  • (Boolean)


860
861
862
# File 'docs/01450_Systems_00200_Storage.rb', line 860

def reduced
  @reduced
end

Instance Method Details

#data=(pokemon)

Update the shown pokemon



880
881
# File 'docs/01450_Systems_00200_Storage.rb', line 880

def data=(pokemon)
end

#done?boolean

Tell if the animation is done

Returns:

  • (boolean)


884
885
# File 'docs/01450_Systems_00200_Storage.rb', line 884

def done?
end

#no_egg(object)

Set an object invisible if the Pokemon is an egg

Parameters:

  • object (#visible=)

    the object that is invisible if the Pokemon is an egg



877
878
# File 'docs/01450_Systems_00200_Storage.rb', line 877

def no_egg(object)
end

#reduce

Reduce the UI (start animation)



887
888
# File 'docs/01450_Systems_00200_Storage.rb', line 887

def reduce
end

#show

Show the UI (start animation)



890
891
# File 'docs/01450_Systems_00200_Storage.rb', line 890

def show
end

#update

Update the composition state



873
874
# File 'docs/01450_Systems_00200_Storage.rb', line 873

def update
end