2009-05-03 20:53:31 +02:00
|
|
|
#ifndef _GUIGAMEBROWSER_H_
|
|
|
|
#define _GUIGAMEBROWSER_H_
|
|
|
|
|
|
|
|
#include "gui.h"
|
|
|
|
#include "../disc.h"
|
|
|
|
|
|
|
|
class GuiGameBrowser : public GuiElement
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiGameBrowser(int w, int h, struct discHdr * l, int gameCnt, const char *themePath, const u8 *imagebg, int selected = 0, int offset = 0);
|
|
|
|
~GuiGameBrowser();
|
|
|
|
int FindMenuItem(int c, int d);
|
|
|
|
int GetClickedOption();
|
|
|
|
int GetSelectedOption();
|
|
|
|
void ResetState();
|
|
|
|
void SetFocus(int f);
|
|
|
|
void Draw();
|
|
|
|
void Update(GuiTrigger * t);
|
2009-05-21 10:56:23 +02:00
|
|
|
int GetOffset();
|
|
|
|
void Reload(struct discHdr * l, int count);
|
2009-05-03 20:53:31 +02:00
|
|
|
//GuiText * optionVal[PAGESIZE];
|
|
|
|
protected:
|
2009-05-23 00:36:55 +02:00
|
|
|
void UpdateListEntries();
|
2009-05-03 20:53:31 +02:00
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int scrollbaron;
|
|
|
|
int pagesize;
|
2009-05-23 00:36:55 +02:00
|
|
|
int maxTextWidth;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
|
|
|
struct discHdr * gameList;
|
|
|
|
int gameCnt;
|
|
|
|
|
|
|
|
int * gameIndex;
|
|
|
|
GuiButton ** game;
|
|
|
|
GuiText ** gameTxt;
|
2009-05-23 00:36:55 +02:00
|
|
|
GuiText ** gameTxtOver;
|
2009-05-03 20:53:31 +02:00
|
|
|
GuiImage ** gameBg;
|
|
|
|
|
|
|
|
GuiButton * arrowUpBtn;
|
|
|
|
GuiButton * arrowDownBtn;
|
|
|
|
GuiButton * scrollbarBoxBtn;
|
|
|
|
|
|
|
|
GuiImage * bgGameImg;
|
|
|
|
GuiImage * scrollbarImg;
|
|
|
|
GuiImage * arrowDownImg;
|
|
|
|
GuiImage * arrowDownOverImg;
|
|
|
|
GuiImage * arrowUpImg;
|
|
|
|
GuiImage * arrowUpOverImg;
|
|
|
|
GuiImage * scrollbarBoxImg;
|
|
|
|
GuiImage * scrollbarBoxOverImg;
|
|
|
|
|
|
|
|
GuiImageData * bgGames;
|
|
|
|
GuiImageData * bgGamesEntry;
|
|
|
|
GuiImageData * scrollbar;
|
|
|
|
GuiImageData * arrowDown;
|
|
|
|
GuiImageData * arrowDownOver;
|
|
|
|
GuiImageData * arrowUp;
|
|
|
|
GuiImageData * arrowUpOver;
|
|
|
|
GuiImageData * scrollbarBox;
|
|
|
|
GuiImageData * scrollbarBoxOver;
|
|
|
|
|
|
|
|
GuiSound * btnSoundOver;
|
|
|
|
GuiSound * btnSoundClick;
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigHeldA;
|
|
|
|
};
|
|
|
|
#endif
|