Files
itgmania212121/stepmania/src/DifficultyIcon.h
T
Glenn Maynard 73271fa3d2 fix DifficultyIcon hiding when no song is selected
(Note that in general, actors should never SetHidden(false) on themselves,
since that will cause themed "hidden,1" commands to be overridden.)
2004-04-28 22:57:42 +00:00

36 lines
877 B
C++

#ifndef DIFFICULTYICON_H
#define DIFFICULTYICON_H
/*
-----------------------------------------------------------------------------
Class: DifficultyIcon
Desc: Graphical representation of the difficulty class.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Sprite.h"
#include "PlayerNumber.h"
#include "GameConstantsAndTypes.h"
class Steps;
class DifficultyIcon : public Sprite
{
bool m_bBlank;
public:
DifficultyIcon();
virtual bool EarlyAbortDraw() { return m_bBlank || Sprite::EarlyAbortDraw(); }
bool Load( CString sFilePath );
void SetFromNotes( PlayerNumber pn, Steps* pNotes );
void SetFromDifficulty( PlayerNumber pn, Difficulty dc );
void SetFromCourseDifficulty( PlayerNumber pn, CourseDifficulty cd );
};
#endif