2002-01-16 10:01:32 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2002-08-20 21:00:56 +00:00
|
|
|
Class: MusicSortDisplay
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
Desc: A graphic displayed in the MusicSortDisplay during Dancing.
|
|
|
|
|
|
2003-02-03 04:50:37 +00:00
|
|
|
Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved.
|
2002-08-20 21:00:56 +00:00
|
|
|
Chris Danford
|
2003-02-03 04:50:37 +00:00
|
|
|
Chris Gomez
|
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"
|
2002-11-11 04:53:31 +00:00
|
|
|
#include "ThemeManager.h"
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
MusicSortDisplay::MusicSortDisplay()
|
|
|
|
|
{
|
2003-02-04 03:03:43 +00:00
|
|
|
Load( THEME->GetPathTo("Graphics","music sort icons 1x4") );
|
2002-01-16 10:01:32 +00:00
|
|
|
StopAnimating();
|
|
|
|
|
}
|
|
|
|
|
|
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:
|
|
|
|
|
case SORT_TITLE:
|
|
|
|
|
case SORT_BPM:
|
|
|
|
|
case SORT_MOST_PLAYED:
|
2002-08-20 21:00:56 +00:00
|
|
|
SetState( so );
|
2002-01-16 10:01:32 +00:00
|
|
|
break;
|
|
|
|
|
default:
|
2002-08-20 21:00:56 +00:00
|
|
|
ASSERT(0); // unimplemented MusicSortOrder
|
2002-01-16 10:01:32 +00:00
|
|
|
}
|
|
|
|
|
}
|