make themeable

This commit is contained in:
Chris Danford
2005-03-05 09:11:56 +00:00
parent 527534cdaa
commit fd16ad74fb
5 changed files with 10 additions and 8 deletions
@@ -0,0 +1 @@
_shared2
@@ -0,0 +1 @@
Common normal
@@ -0,0 +1 @@
Common normal
+2 -3
View File
@@ -55,14 +55,14 @@ EditMenu::EditMenu()
for( int i=0; i<NUM_ROWS; i++ )
{
m_textLabel[i].LoadFromFont( THEME->GetPathF("Common","title") );
m_textLabel[i].LoadFromFont( THEME->GetPathF("EditMenu","title") );
m_textLabel[i].SetXY( ROW_LABELS_X, ROW_Y(i) );
m_textLabel[i].SetText( RowToString((Row)i) );
m_textLabel[i].SetZoom( 0.8f );
m_textLabel[i].SetHorizAlign( Actor::align_left );
this->AddChild( &m_textLabel[i] );
m_textValue[i].LoadFromFont( THEME->GetPathF("Common","normal") );
m_textValue[i].LoadFromFont( THEME->GetPathF("EditMenu","value") );
m_textValue[i].SetXY( ROW_VALUE_X(i), ROW_Y(i) );
m_textValue[i].SetText( "blah" );
m_textValue[i].SetZoom( 0.8f );
@@ -129,7 +129,6 @@ EditMenu::EditMenu()
}
}
}
}
}
+5 -5
View File
@@ -39,14 +39,14 @@ void ScreenEditMenu::Init()
m_textExplanation.SetName( "Explanation" );
m_textExplanation.LoadFromFont( THEME->GetPathF("Common","normal") );
m_textExplanation.LoadFromFont( THEME->GetPathF(m_sName,"explanation") );
SET_XY_AND_ON_COMMAND( m_textExplanation );
m_textExplanation.SetText( EXPLANATION_TEXT );
this->AddChild( &m_textExplanation );
this->SortByDrawOrder();
SOUND->PlayMusic( THEME->GetPathS("ScreenEditMenu","music") );
SOUND->PlayMusic( THEME->GetPathS(m_sName,"music") );
}
void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
@@ -150,7 +150,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
pSong->AddSteps( pNewNotes );
SCREENMAN->SystemMessage( "Steps created from copy." );
SOUND->PlayOnce( THEME->GetPathS("ScreenEditMenu","create") );
SOUND->PlayOnce( THEME->GetPathS(m_sName,"create") );
m_Selector.RefreshNotes();
pSong->Save();
}
@@ -168,7 +168,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
pSong->AddSteps( pNewNotes );
SCREENMAN->SystemMessage( "Steps created from AutoGen." );
SOUND->PlayOnce( THEME->GetPathS("ScreenEditMenu","create") );
SOUND->PlayOnce( THEME->GetPathS(m_sName,"create") );
m_Selector.RefreshNotes();
pSong->Save();
}
@@ -185,7 +185,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
pSong->AddSteps( pNewNotes );
SCREENMAN->SystemMessage( "Blank Steps created." );
SOUND->PlayOnce( THEME->GetPathS("ScreenEditMenu","create") );
SOUND->PlayOnce( THEME->GetPathS(m_sName,"create") );
m_Selector.RefreshNotes();
pSong->Save();
}