Files
itgmania212121/stepmania/src/MusicSortDisplay.cpp
T

42 lines
906 B
C++
Raw Normal View History

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.
Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved.
2002-08-20 21:00:56 +00:00
Chris Danford
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"
#include "ThemeManager.h"
2002-01-16 10:01:32 +00:00
MusicSortDisplay::MusicSortDisplay()
{
Load( THEME->GetPathTo("Graphics","music sort icons 1x4") );
2002-01-16 10:01:32 +00:00
StopAnimating();
}
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
}
}