more m_sID
This commit is contained in:
@@ -14,11 +14,13 @@ HelpDisplay::HelpDisplay()
|
||||
m_fSecsUntilSwitch = 0;
|
||||
}
|
||||
|
||||
void HelpDisplay::Load()
|
||||
void HelpDisplay::Load( const CString &sType )
|
||||
{
|
||||
RunCommands( THEME->GetMetricA(m_sName,"TipOnCommand") );
|
||||
TIP_SHOW_TIME.Load( sType, "TipShowTime" );
|
||||
|
||||
LoadFromFont( THEME->GetPathF(m_sName,"text") );
|
||||
RunCommands( THEME->GetMetricA(sType,"TipOnCommand") );
|
||||
|
||||
LoadFromFont( THEME->GetPathF(sType,"text") );
|
||||
|
||||
m_fSecsUntilSwitch = TIP_SHOW_TIME;
|
||||
}
|
||||
@@ -31,8 +33,6 @@ void HelpDisplay::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||
void HelpDisplay::SetName( const CString &sName, const CString &sID )
|
||||
{
|
||||
BitmapText::SetName( sName, sID );
|
||||
|
||||
TIP_SHOW_TIME.Load( m_sName, "TipShowTime" );
|
||||
}
|
||||
|
||||
void HelpDisplay::SetTips( const CStringArray &arrayTips, const CStringArray &arrayTipsAlt )
|
||||
|
||||
@@ -13,7 +13,7 @@ class HelpDisplay : public BitmapText
|
||||
{
|
||||
public:
|
||||
HelpDisplay();
|
||||
void Load();
|
||||
void Load( const CString &sType );
|
||||
|
||||
void LoadFromNode( const CString& sDir, const XNode* pNode );
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ void ScreenSelectMusic::Init()
|
||||
this->AddChild( &m_textTotalTime );
|
||||
|
||||
m_Artist.SetName( "ArtistDisplay" );
|
||||
m_Artist.Load();
|
||||
m_Artist.Load( "ArtistDisplay" );
|
||||
SET_XY( m_Artist );
|
||||
this->AddChild( &m_Artist );
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ void ScreenWithMenuElements::Init()
|
||||
SET_XY_AND_ON_COMMAND( m_autoFooter );
|
||||
this->AddChild( m_autoFooter );
|
||||
|
||||
m_textHelp->SetName( "HelpDisplay", "Help" );
|
||||
m_textHelp->Load();
|
||||
m_textHelp->SetName( "Help" );
|
||||
m_textHelp->Load( "HelpDisplay" );
|
||||
SET_XY_AND_ON_COMMAND( m_textHelp );
|
||||
LoadHelpText();
|
||||
this->AddChild( m_textHelp );
|
||||
|
||||
Reference in New Issue
Block a user