2010-09-19 01:16:05 +02:00
|
|
|
#ifndef _GUIGAMEBROWSER_H_
|
2009-05-03 20:53:31 +02:00
|
|
|
#define _GUIGAMEBROWSER_H_
|
|
|
|
|
|
|
|
#include "gui.h"
|
2009-06-13 02:24:36 +02:00
|
|
|
#include "../usbloader/disc.h"
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-02-09 11:59:55 +01:00
|
|
|
class GuiGameBrowser : public GuiElement
|
|
|
|
{
|
2010-09-19 01:16:05 +02:00
|
|
|
public:
|
|
|
|
GuiGameBrowser( int w, int h, 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 );
|
|
|
|
int GetOffset();
|
|
|
|
void Reload();
|
|
|
|
//GuiText * optionVal[PAGESIZE];
|
|
|
|
protected:
|
|
|
|
void UpdateListEntries();
|
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int scrollbaron;
|
|
|
|
int pagesize;
|
|
|
|
int maxTextWidth;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
int * gameIndex;
|
|
|
|
GuiButton ** game;
|
|
|
|
GuiText ** gameTxt;
|
|
|
|
GuiText ** gameTxtOver;
|
|
|
|
GuiImage ** gameBg;
|
|
|
|
GuiImage ** newImg;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiButton * arrowUpBtn;
|
|
|
|
GuiButton * arrowDownBtn;
|
|
|
|
GuiButton * scrollbarBoxBtn;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiImage * bgGameImg;
|
|
|
|
GuiImage * scrollbarImg;
|
|
|
|
GuiImage * arrowDownImg;
|
|
|
|
GuiImage * arrowDownOverImg;
|
|
|
|
GuiImage * arrowUpImg;
|
|
|
|
GuiImage * arrowUpOverImg;
|
|
|
|
GuiImage * scrollbarBoxImg;
|
|
|
|
GuiImage * scrollbarBoxOverImg;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiImageData * bgGames;
|
|
|
|
GuiImageData * bgGamesEntry;
|
|
|
|
GuiImageData * newGames;
|
|
|
|
GuiImageData * scrollbar;
|
|
|
|
GuiImageData * arrowDown;
|
|
|
|
GuiImageData * arrowDownOver;
|
|
|
|
GuiImageData * arrowUp;
|
|
|
|
GuiImageData * arrowUpOver;
|
|
|
|
GuiImageData * scrollbarBox;
|
|
|
|
GuiImageData * scrollbarBoxOver;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiSound * btnSoundClick;
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigHeldA;
|
2009-05-03 20:53:31 +02:00
|
|
|
};
|
|
|
|
#endif
|