Skip to content

Commit

Permalink
disable fade on fade_out->fade_in switch
Browse files Browse the repository at this point in the history
- needs more thought, fade_in time must match the current alpha
  • Loading branch information
hjanetzek committed Aug 15, 2016
1 parent a87e38d commit e4f6e41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/src/labels/label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,12 @@ bool Label::evalState(float _dt) {
return true;

case State::fading_out:
if (!m_occluded) {
enterState(State::fading_in, m_transform.state.alpha);
return true;
}
// if (!m_occluded) {
// enterState(State::fading_in, m_transform.state.alpha);
// m_fade.reset(false, m_options.hideTransition.ease,
// m_options.showTransition.time);
// return true;
// }
setAlpha(m_fade.update(_dt));
if (m_fade.isFinished()) {
enterState(State::sleep, 0.0);
Expand Down

0 comments on commit e4f6e41

Please sign in to comment.