Added ScreenHowToPlay, removed texture hints, and cleaned up ThemeMetric stuff
This commit is contained in:
@@ -46,12 +46,15 @@ void TipDisplay::Update( float fDeltaTime )
|
||||
{
|
||||
ActorFrame::Update( fDeltaTime );
|
||||
|
||||
m_fSecsUntilSwitch -= fDeltaTime;
|
||||
if( m_fSecsUntilSwitch < 0 ) // time to switch states
|
||||
if( m_arrayTips.GetSize() > 0 )
|
||||
{
|
||||
m_iCurTipIndex++;
|
||||
m_iCurTipIndex = m_iCurTipIndex % m_arrayTips.GetSize();
|
||||
m_fSecsUntilSwitch = TIP_SHOW_TIME;
|
||||
m_textTip.SetText( m_arrayTips[m_iCurTipIndex] );
|
||||
m_fSecsUntilSwitch -= fDeltaTime;
|
||||
if( m_fSecsUntilSwitch < 0 ) // time to switch states
|
||||
{
|
||||
m_iCurTipIndex++;
|
||||
m_iCurTipIndex = m_iCurTipIndex % m_arrayTips.GetSize();
|
||||
m_fSecsUntilSwitch = TIP_SHOW_TIME;
|
||||
m_textTip.SetText( m_arrayTips[m_iCurTipIndex] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user