checkin of v1.50
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
#include "stdafx.h"
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
File: MusicSortDisplay.h
|
||||
|
||||
Desc: A graphic displayed in the MusicSortDisplay during Dancing.
|
||||
|
||||
Copyright (c) 2001 Chris Danford. All rights reserved.
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "MusicSortDisplay.h"
|
||||
#include "RageUtil.h"
|
||||
#include "ScreenDimensions.h"
|
||||
#include "MusicWheel.h"
|
||||
#include "MusicSortDisplay.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
MusicSortDisplay::MusicSortDisplay()
|
||||
{
|
||||
Load( THEME->GetPathTo(GRAPHIC_MUSIC_SORT_ICONS) );
|
||||
StopAnimating();
|
||||
TurnShadowOff();
|
||||
//SetXY( ON_SCREEN_X, ON_SCREEN_Y );
|
||||
}
|
||||
|
||||
|
||||
void MusicSortDisplay::Set( MusicSortOrder so )
|
||||
{
|
||||
|
||||
switch( so )
|
||||
{
|
||||
case SORT_GROUP:
|
||||
SetState( 0 );
|
||||
break;
|
||||
case SORT_TITLE:
|
||||
SetState( 1 );
|
||||
break;
|
||||
case SORT_BPM:
|
||||
SetState( 2 );
|
||||
break;
|
||||
case SORT_ARTIST:
|
||||
SetState( 3 );
|
||||
break;
|
||||
case SORT_MOST_PLAYED:
|
||||
SetState( 4 );
|
||||
break;
|
||||
case NUM_SORT_ORDERS:
|
||||
SetState( 5 );
|
||||
break;
|
||||
default:
|
||||
ASSERT( true ); // unimplemented MusicSortOrder
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user