Implement ScreenMiniMenu with ScreenOptions

This commit is contained in:
Chris Danford
2005-03-20 06:41:56 +00:00
parent 48e6cb1a69
commit bbadc010f4
16 changed files with 534 additions and 745 deletions
+9 -3
View File
@@ -15,11 +15,17 @@
OptionIcon::OptionIcon()
{
m_spr.Load( THEME->GetPathG("OptionIcon","frame 3x2") );
}
void OptionIcon::Load( CString sType )
{
ASSERT( m_SubActors.empty() ); // don't load twice
m_spr.Load( THEME->GetPathG(sType,"icon 3x2") );
m_spr.StopAnimating();
this->AddChild( &m_spr );
m_text.LoadFromFont( THEME->GetPathF("OptionIcon","text") );
m_text.LoadFromFont( THEME->GetPathF(sType,"icon") );
m_text.SetShadowLength( 0 );
m_text.SetZoom( TEXT_ZOOM );
m_text.SetXY( TEXT_OFFSET_X, TEXT_OFFSET_Y );
@@ -28,7 +34,7 @@ OptionIcon::OptionIcon()
this->AddChild( &m_text );
}
void OptionIcon::Load( PlayerNumber pn, const CString &_sText, bool bHeader )
void OptionIcon::Set( PlayerNumber pn, const CString &_sText, bool bHeader )
{
CString sText = _sText;