PlayerName
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Common Normal
|
||||
@@ -1854,6 +1854,14 @@ ExplanationTogetherOnCommand=wrapwidthpixels,1000;horizalign,left;cropright,1;li
|
||||
ExplanationZoom=0.5
|
||||
ExplanationP1OnCommand=wrapwidthpixels,500;horizalign,left;cropright,1;linear,0.5;cropright,0
|
||||
ExplanationP2OnCommand=wrapwidthpixels,500;horizalign,right;cropright,1;linear,0.5;cropright,0
|
||||
PlayerNameP1X=0
|
||||
PlayerNameP1Y=0
|
||||
PlayerNameP1OnCommand=hidden,1
|
||||
PlayerNameP1OffCommand=
|
||||
PlayerNameP2X=0
|
||||
PlayerNameP2Y=0
|
||||
PlayerNameP2OnCommand=hidden,1
|
||||
PlayerNameP2OffCommand=
|
||||
ColorSelected=1,1,1,1 // normal
|
||||
ColorNotSelected=0.5,0.5,0.5,1 // grayed
|
||||
NumShownItems=10
|
||||
|
||||
@@ -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" );
|
||||
|
||||
@@ -124,6 +124,7 @@ protected: // derived classes need access to these
|
||||
OptionIcon m_OptionIcons[NUM_PLAYERS][MAX_OPTION_LINES];
|
||||
OptionsCursor m_Highlight[NUM_PLAYERS];
|
||||
|
||||
BitmapText m_textPlayerName[NUM_PLAYERS];
|
||||
BitmapText m_textExplanation[NUM_PLAYERS];
|
||||
DualScrollBar m_ScrollBar;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user