Add MusicList (move column display out of ScreenSelectGroup). Doesn't

have a group limit (but ScreenSelectGroup still does)
This commit is contained in:
Glenn Maynard
2002-08-24 06:30:32 +00:00
parent 4e4be34e61
commit 1d2e3faefd
6 changed files with 175 additions and 96 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef MUSICLIST_H
#define MUSICLIST_H
#include "ActorFrame.h"
#include "BitmapText.h"
#include "Song.h"
const int MAX_MLIST_COLUMNS = 5;
class MusicList : public ActorFrame {
BitmapText m_textTitles[MAX_MLIST_COLUMNS];
struct group {
CString ContentsText[MAX_MLIST_COLUMNS];
int m_iNumSongsInGroup;
};
CArray<group,group> m_ContentsText;
int NumGroups, CurGroup;
public:
MusicList();
/* Add a new group. */
void AddGroup();
/* Add songs to the group that was just added. */
void AddSongsToGroup(const CArray<Song*,Song*> &songs);
/* Set the displayed group number. */
void SetGroupNo(int group);
void TweenOnScreen();
void TweenOffScreen();
int GetNumSongs() const { return m_ContentsText[CurGroup].m_iNumSongsInGroup; }
};
#endif