fix sync overlay help sticks around between stages
This commit is contained in:
@@ -67,8 +67,7 @@ void ScreenSyncOverlay::Update( float fDeltaTime )
|
|||||||
this->SetVisible( IsGameplay() );
|
this->SetVisible( IsGameplay() );
|
||||||
if( !IsGameplay() )
|
if( !IsGameplay() )
|
||||||
{
|
{
|
||||||
m_quad.SetDiffuseAlpha( 0 );
|
HideHelp();
|
||||||
m_textHelp.SetDiffuseAlpha( 0 );
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,6 +239,13 @@ void ScreenSyncOverlay::ShowHelp()
|
|||||||
m_textHelp.SetDiffuseAlpha( 0 );
|
m_textHelp.SetDiffuseAlpha( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScreenSyncOverlay::HideHelp()
|
||||||
|
{
|
||||||
|
m_quad.FinishTweening();
|
||||||
|
m_textHelp.FinishTweening();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2001-2005 Chris Danford
|
* (c) 2001-2005 Chris Danford
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void UpdateText();
|
void UpdateText();
|
||||||
void ShowHelp();
|
void ShowHelp();
|
||||||
|
void HideHelp();
|
||||||
|
|
||||||
Quad m_quad;
|
Quad m_quad;
|
||||||
BitmapText m_textHelp;
|
BitmapText m_textHelp;
|
||||||
|
|||||||
Reference in New Issue
Block a user