Allow for displaying the chart artist separately.

This defaults to false/off right now. It needs testing.
This commit is contained in:
Jason Felds
2011-02-28 01:04:24 -05:00
parent 97d0dde50b
commit 5375887c14
4 changed files with 43 additions and 4 deletions
+17
View File
@@ -55,6 +55,7 @@ void StepsDisplay::Load( const RString &sMetricsGroup, const PlayerState *pPlaye
m_bShowTicks.Load(m_sMetricsGroup,"ShowTicks");
m_bShowMeter.Load(m_sMetricsGroup,"ShowMeter");
m_bShowDescription.Load(m_sMetricsGroup,"ShowDescription");
m_bShowCredit.Load(m_sMetricsGroup,"ShowCredit");
m_bShowAutogen.Load(m_sMetricsGroup,"ShowAutogen");
m_bShowStepsType.Load(m_sMetricsGroup,"ShowStepsType");
m_sZeroMeterString.Load(m_sMetricsGroup,"ZeroMeterString");
@@ -91,6 +92,13 @@ void StepsDisplay::Load( const RString &sMetricsGroup, const PlayerState *pPlaye
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textDescription, m_sMetricsGroup );
this->AddChild( &m_textDescription );
}
if( m_bShowCredit )
{
m_textAuthor.SetName( "Step Author" );
m_textAuthor.LoadFromFont( THEME->GetPathF(m_sMetricsGroup,"Credit") );
ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( m_textAuthor, m_sMetricsGroup );
this->AddChild( &m_textAuthor );
}
if( m_bShowAutogen )
{
@@ -196,6 +204,10 @@ void StepsDisplay::SetInternal( const SetParams &params )
else
sDisplayDescription = CustomDifficultyToLocalizedString( sCustomDifficulty );
msg.SetParam( "DisplayDescription", sDisplayDescription );
RString sDisplayCredit;
if( params.pSteps )
sDisplayCredit = params.pSteps->GetCredit();
if( params.pSteps )
msg.SetParam( "Steps", LuaReference::CreateFromPush(*(Steps*)params.pSteps) );
@@ -241,6 +253,11 @@ void StepsDisplay::SetInternal( const SetParams &params )
m_textDescription.SetText( sDisplayDescription );
m_textDescription.HandleMessage( msg );
}
if( m_bShowCredit )
{
m_textAuthor.SetText( sDisplayCredit );
m_textAuthor.HandleMessage( msg );
}
if( m_bShowAutogen )
{