Files
itgmania212121/stepmania/src/MusicSortDisplay.cpp
T

53 lines
994 B
C++
Raw Normal View History

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()
{
Load( THEME->GetPathTo("Graphics","music sort icons") );
2002-01-16 10:01:32 +00:00
StopAnimating();
TurnShadowOff();
//SetXY( ON_SCREEN_X, ON_SCREEN_Y );
}
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
}
}