add ControllerStateDisplay

This commit is contained in:
Chris Danford
2006-01-11 01:02:46 +00:00
parent a462b2a640
commit 8823d50b07
8 changed files with 201 additions and 1 deletions
+7
View File
@@ -62,6 +62,8 @@ void ScreenJoinMultiplayer::Init()
this->AddChild( m_sprPlayer[p] );
LUA->UnsetGlobal( "ThisGameCommand" );
m_ControllerState[p].Load( p );
}
m_exprOnCommandFunction.SetFromExpression( THEME->GetMetric(m_sName,"TranformFunction") );
@@ -69,6 +71,11 @@ void ScreenJoinMultiplayer::Init()
FOREACH_MultiPlayer( p )
{
PositionItem( m_sprPlayer[p], p, NUM_MultiPlayer );
PositionItem( &m_ControllerState[p], p, NUM_MultiPlayer );
m_ControllerState[p].AddX( -30 );
m_ControllerState[p].AddY( 30 );
this->AddChild( &m_ControllerState[p] );
}
m_soundPlugIn.Load( THEME->GetPathS(m_sName,"PlugIn") );