simplify. Don't separate "next" and "cancel" as much: to cancel, set the next screen to PREV_SCREEN, and use SM_GoToNextScreen.
This commit is contained in:
@@ -285,6 +285,8 @@ void ScreenWithMenuElements::TweenOffScreen()
|
||||
|
||||
void ScreenWithMenuElements::Cancel( ScreenMessage smSendWhenDone )
|
||||
{
|
||||
m_sNextScreen = GetPrevScreen();
|
||||
|
||||
if( CANCEL_TRANSITIONS_OUT )
|
||||
{
|
||||
SCREENMAN->PlayCancelSound();
|
||||
|
||||
Reference in New Issue
Block a user