PlayerName

This commit is contained in:
Glenn Maynard
2003-12-18 22:51:43 +00:00
parent 276889e6a4
commit 2876292c4f
4 changed files with 20 additions and 0 deletions
+10
View File
@@ -21,6 +21,7 @@
#include "ThemeManager.h"
#include "InputMapper.h"
#include "ActorUtil.h"
#include "ProfileManager.h"
const float ITEM_X[NUM_PLAYERS] = { 260, 420 };
@@ -223,6 +224,15 @@ void ScreenOptions::Init( InputMode im, OptionRow OptionRows[], int iNumOptionLi
m_framePage.AddChild( &m_textExplanation[p] );
}
for( p=0; p<NUM_PLAYERS; p++ )
{
m_textPlayerName[p].LoadFromFont( THEME->GetPathToF( "ScreenOptions player") );
m_textPlayerName[p].SetName( ssprintf("PlayerNameP%i",p+1) );
m_textPlayerName[p].SetText( PROFILEMAN->GetPlayerName((PlayerNumber)p) );
UtilSetXYAndOnCommand( m_textPlayerName[p], "ScreenOptions" );
m_framePage.AddChild( &m_textPlayerName[p] );
}
if( SHOW_SCROLL_BAR )
{
m_ScrollBar.SetName( "DualScrollBar", "ScrollBar" );