2002-01-16 10:01:32 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: MusicSortDisplay.h
|
|
|
|
|
|
|
|
|
|
Desc: A graphic displayed in the MusicSortDisplay during Dancing.
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-01-16 10:01:32 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "MusicSortDisplay.h"
|
|
|
|
|
#include "RageUtil.h"
|
2002-05-01 19:14:55 +00:00
|
|
|
#include "GameConstantsAndTypes.h"
|
2002-01-16 10:01:32 +00:00
|
|
|
#include "MusicWheel.h"
|
|
|
|
|
#include "MusicSortDisplay.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MusicSortDisplay::MusicSortDisplay()
|
|
|
|
|
{
|
2002-08-13 23:26:46 +00:00
|
|
|
Load( THEME->GetPathTo("Graphics","music sort icons") );
|
2002-01-16 10:01:32 +00:00
|
|
|
StopAnimating();
|
|
|
|
|
TurnShadowOff();
|
|
|
|
|
//SetXY( ON_SCREEN_X, ON_SCREEN_Y );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2002-02-06 05:13:39 +00:00
|
|
|
void MusicSortDisplay::Set( SongSortOrder so )
|
2002-01-16 10:01:32 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
switch( so )
|
|
|
|
|
{
|
|
|
|
|
case SORT_GROUP:
|
|
|
|
|
SetState( 0 );
|
|
|
|
|
break;
|
|
|
|
|
case SORT_TITLE:
|
|
|
|
|
SetState( 1 );
|
|
|
|
|
break;
|
|
|
|
|
case SORT_BPM:
|
|
|
|
|
SetState( 2 );
|
|
|
|
|
break;
|
|
|
|
|
case SORT_MOST_PLAYED:
|
2002-02-24 01:43:11 +00:00
|
|
|
SetState( 3 );
|
2002-01-16 10:01:32 +00:00
|
|
|
break;
|
|
|
|
|
default:
|
2002-02-11 04:46:31 +00:00
|
|
|
ASSERT( false ); // unimplemented MusicSortOrder
|
2002-01-16 10:01:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|