Files
itgmania212121/stepmania/src/GroupList.h
T
2003-04-05 21:47:32 +00:00

38 lines
818 B
C++

#ifndef GROUPLIST_H
#define GROUPLIST_H
#include "ActorFrame.h"
#include "Sprite.h"
#include "BitmapText.h"
const unsigned MAX_GROUPS_ONSCREEN = 7;
class GroupList: public ActorFrame {
Sprite m_sprButton[MAX_GROUPS_ONSCREEN];
BitmapText m_screenLabels[MAX_GROUPS_ONSCREEN];
vector<CString> m_asLabels;
/* Currently selected label. */
unsigned m_iSelection;
/* Label that's currently at the top of the screen. */
unsigned m_iTop;
void BeforeChange();
void AfterChange();
void SetLabels();
public:
GroupList();
void SetSelection(unsigned sel);
int GetSelection() const { return m_iSelection; }
CString GetSelectionName() const { return m_asLabels[m_iSelection]; }
void Up();
void Down();
void Load( const CStringArray& asGroupNames );
void TweenOffScreen();
void TweenOnScreen();
};
#endif