Files
itgmania212121/stepmania/src/MusicSortDisplay.cpp
T

53 lines
963 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.
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( 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
}
}