separate bar graphics for sort and mode

This commit is contained in:
Chris Danford
2005-05-01 23:38:40 +00:00
parent f858e3a5b6
commit 4a6ec0a155
4 changed files with 23 additions and 1 deletions
@@ -0,0 +1 @@
MusicWheelItem section
@@ -0,0 +1 @@
MusicWheelItem section
+19 -1
View File
@@ -61,6 +61,14 @@ MusicWheelItem::MusicWheelItem()
m_sprExpandedBar.SetXY( 0, 0 ); m_sprExpandedBar.SetXY( 0, 0 );
this->AddChild( &m_sprExpandedBar ); this->AddChild( &m_sprExpandedBar );
m_sprModeBar.Load( THEME->GetPathG("MusicWheelItem","mode") );
m_sprModeBar.SetXY( 0, 0 );
this->AddChild( &m_sprModeBar );
m_sprSortBar.Load( THEME->GetPathG("MusicWheelItem","sort") );
m_sprSortBar.SetXY( 0, 0 );
this->AddChild( &m_sprSortBar );
m_fPercentGray = 0; m_fPercentGray = 0;
m_WheelNotifyIcon.SetXY( ICON_X, ICON_Y ); m_WheelNotifyIcon.SetXY( ICON_X, ICON_Y );
m_WheelNotifyIcon.RunCommands( ICON_ON_COMMAND ); m_WheelNotifyIcon.RunCommands( ICON_ON_COMMAND );
@@ -116,6 +124,8 @@ void MusicWheelItem::LoadFromWheelItemData( WheelItemData* pWID, bool bExpanded
m_sprSongBar.SetHidden( true ); m_sprSongBar.SetHidden( true );
m_sprSectionBar.SetHidden( true ); m_sprSectionBar.SetHidden( true );
m_sprExpandedBar.SetHidden( true ); m_sprExpandedBar.SetHidden( true );
m_sprModeBar.SetHidden( true );
m_sprSortBar.SetHidden( true );
m_textSection.SetHidden( true ); m_textSection.SetHidden( true );
m_textRoulette.SetHidden( true ); m_textRoulette.SetHidden( true );
FOREACH_PlayerNumber( p ) FOREACH_PlayerNumber( p )
@@ -194,8 +204,16 @@ void MusicWheelItem::LoadFromWheelItemData( WheelItemData* pWID, bool bExpanded
case TYPE_ROULETTE: case TYPE_ROULETTE:
case TYPE_RANDOM: case TYPE_RANDOM:
case TYPE_PORTAL: case TYPE_PORTAL:
if( bExpanded )
m_sprExpandedBar.SetHidden( false );
else
m_sprSectionBar.SetHidden( false );
break;
case TYPE_SORT: case TYPE_SORT:
(bExpanded ? m_sprExpandedBar : m_sprSectionBar).SetHidden( false ); if( pWID->m_Action.m_pm != PLAY_MODE_INVALID )
m_sprModeBar.SetHidden( false );
else
m_sprSortBar.SetHidden( false );
break; break;
case TYPE_SONG: case TYPE_SONG:
case TYPE_COURSE: case TYPE_COURSE:
+2
View File
@@ -30,6 +30,8 @@ public:
Sprite m_sprSongBar; Sprite m_sprSongBar;
Sprite m_sprSectionBar; Sprite m_sprSectionBar;
Sprite m_sprExpandedBar; Sprite m_sprExpandedBar;
Sprite m_sprModeBar;
Sprite m_sprSortBar;
WheelNotifyIcon m_WheelNotifyIcon; WheelNotifyIcon m_WheelNotifyIcon;
TextBanner m_TextBanner; TextBanner m_TextBanner;
BitmapText m_textSection; BitmapText m_textSection;