Add ReloadScreen().
This commit is contained in:
@@ -77,6 +77,11 @@ void Screen::BeginScreen()
|
|||||||
this->RunCommands( THEME->GetMetricA(m_sName, "ScreenOnCommand") );
|
this->RunCommands( THEME->GetMetricA(m_sName, "ScreenOnCommand") );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Screen::ReloadScreen()
|
||||||
|
{
|
||||||
|
SCREENMAN->SetNewScreen( m_sName );
|
||||||
|
}
|
||||||
|
|
||||||
void Screen::Update( float fDeltaTime )
|
void Screen::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
ActorFrame::Update( fDeltaTime );
|
ActorFrame::Update( fDeltaTime );
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ public:
|
|||||||
/* This is called when the screen is popped. */
|
/* This is called when the screen is popped. */
|
||||||
virtual void EndScreen() { }
|
virtual void EndScreen() { }
|
||||||
|
|
||||||
|
/* Call this to reload the current screen. */
|
||||||
|
virtual void ReloadScreen();
|
||||||
|
|
||||||
virtual void Update( float fDeltaTime );
|
virtual void Update( float fDeltaTime );
|
||||||
virtual bool OverlayInput( const InputEventPlus &input );
|
virtual bool OverlayInput( const InputEventPlus &input );
|
||||||
virtual void Input( const InputEventPlus &input );
|
virtual void Input( const InputEventPlus &input );
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ void ScreenOptionsManageEditSteps::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SCREENMAN->SetNewScreen( this->m_sName ); // reload
|
ReloadScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( SM == SM_BackFromDelete )
|
else if( SM == SM_BackFromDelete )
|
||||||
@@ -174,7 +174,7 @@ void ScreenOptionsManageEditSteps::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
FILEMAN->Remove( pSteps->GetFilename() );
|
FILEMAN->Remove( pSteps->GetFilename() );
|
||||||
SONGMAN->DeleteSteps( pSteps );
|
SONGMAN->DeleteSteps( pSteps );
|
||||||
GAMESTATE->m_pCurSteps[PLAYER_1].Set( NULL );
|
GAMESTATE->m_pCurSteps[PLAYER_1].Set( NULL );
|
||||||
SCREENMAN->SetNewScreen( this->m_sName ); // reload
|
ReloadScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( SM == SM_BackFromContextMenu )
|
else if( SM == SM_BackFromContextMenu )
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ void ScreenOptionsManageProfiles::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
RString sNewName = ScreenTextEntry::s_sLastAnswer;
|
RString sNewName = ScreenTextEntry::s_sLastAnswer;
|
||||||
PROFILEMAN->RenameLocalProfile( GAMESTATE->m_sEditLocalProfileID, sNewName );
|
PROFILEMAN->RenameLocalProfile( GAMESTATE->m_sEditLocalProfileID, sNewName );
|
||||||
|
|
||||||
SCREENMAN->SetNewScreen( this->m_sName ); // reload
|
ReloadScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( SM == SM_BackFromDeleteConfirm )
|
else if( SM == SM_BackFromDeleteConfirm )
|
||||||
@@ -202,7 +202,7 @@ void ScreenOptionsManageProfiles::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
|
|
||||||
PROFILEMAN->DeleteLocalProfile( GetLocalProfileIDWithFocus() );
|
PROFILEMAN->DeleteLocalProfile( GetLocalProfileIDWithFocus() );
|
||||||
|
|
||||||
SCREENMAN->SetNewScreen( this->m_sName ); // reload
|
ReloadScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( SM == SM_BackFromClearConfirm )
|
else if( SM == SM_BackFromClearConfirm )
|
||||||
@@ -211,7 +211,7 @@ void ScreenOptionsManageProfiles::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
{
|
{
|
||||||
GAMESTATE->GetEditLocalProfile()->InitAll();
|
GAMESTATE->GetEditLocalProfile()->InitAll();
|
||||||
|
|
||||||
SCREENMAN->SetNewScreen( this->m_sName ); // reload
|
ReloadScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( SM == SM_BackFromContextMenu )
|
else if( SM == SM_BackFromContextMenu )
|
||||||
|
|||||||
Reference in New Issue
Block a user