Module: BattleUI::GoingInOut

Included in:
AbilityBar, ExpDistribution::Statistics, GenericChoice, InfoBar, PokemonSprite, TrainerPartyBalls, TrainerSprite
Defined in:
docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb

Overview

Module that implements the Going In & Out animation for each sprites/stacks of the UI

To work this module requires ‘animation_handler` to return a `Yuki::Animation::Handler` !

Instance Method Summary collapse

Instance Method Details

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

Get the animation handler



297
298
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 297

def go_in
end

#go_in

Tell the element to go into the scene



297
298
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 297

def go_in
end

#go_out(forced_delta = nil)

Tell the element to go out of the scene

Parameters:

  • forced_delta (Float) (defaults to: nil)

    set the forced delta to force the animation to be performed with a specific delta



301
302
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 301

def go_out(forced_delta = nil)
end

#in?Boolean

Note:

By default a UI element is considered as in because it’s initialized in its in position

Tell if the UI element is in

Returns:

  • (Boolean)


306
307
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 306

def in?
end

#out?Boolean

Tell if the UI element is out

Returns:

  • (Boolean)


310
311
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 310

def out?
end