mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-21 17:24:37 -05:00
Fix PopMessage
This commit is contained in:
parent
962b7fcd16
commit
4b93de93f5
|
|
@ -43,19 +43,21 @@ void ui::PopMessage::update(double targetY)
|
|||
// Always update the targetY unless the message is dropping. This is so messages collapse properly.
|
||||
if (m_state != State::Dropping) { m_transition.set_target_y(targetY); }
|
||||
|
||||
// Always run the update_y routine.
|
||||
PopMessage::update_y();
|
||||
|
||||
// Update the current state.
|
||||
switch (m_state)
|
||||
{
|
||||
case State::Rising: PopMessage::update_y(); break;
|
||||
case State::Opening:
|
||||
{
|
||||
PopMessage::update_text_offset();
|
||||
PopMessage::update_width();
|
||||
}
|
||||
break;
|
||||
|
||||
case State::Displaying: PopMessage::update_display_timer(); break;
|
||||
case State::Closing: PopMessage::update_width(); break;
|
||||
case State::Dropping: PopMessage::update_y(); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user