2010-11-13 23:34:53 +01:00
|
|
|
#ifndef _GUIGAMEBROWSER_H_
|
|
|
|
#define _GUIGAMEBROWSER_H_
|
|
|
|
|
|
|
|
#include "gui.h"
|
|
|
|
#include "../usbloader/disc.h"
|
|
|
|
|
|
|
|
class GuiGameBrowser: public GuiElement
|
|
|
|
{
|
|
|
|
public:
|
2010-12-12 17:31:13 +01:00
|
|
|
GuiGameBrowser(int w, int h, int selectedGame = 0);
|
2010-11-13 23:34:53 +01:00
|
|
|
~GuiGameBrowser();
|
|
|
|
int FindMenuItem(int c, int d);
|
|
|
|
int GetClickedOption();
|
2011-02-25 19:18:57 +01:00
|
|
|
int GetSelectedOption() { return listOffset+selectedItem; }
|
2010-11-13 23:34:53 +01:00
|
|
|
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;
|
|
|
|
|
|
|
|
int * gameIndex;
|
|
|
|
GuiButton ** game;
|
|
|
|
GuiText ** gameTxt;
|
|
|
|
GuiText ** gameTxtOver;
|
|
|
|
GuiImage ** gameBg;
|
|
|
|
GuiImage ** newImg;
|
|
|
|
|
|
|
|
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 * newGames;
|
|
|
|
GuiImageData * scrollbar;
|
|
|
|
GuiImageData * arrowDown;
|
|
|
|
GuiImageData * arrowDownOver;
|
|
|
|
GuiImageData * arrowUp;
|
|
|
|
GuiImageData * arrowUpOver;
|
|
|
|
GuiImageData * scrollbarBox;
|
|
|
|
GuiImageData * scrollbarBoxOver;
|
|
|
|
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigHeldA;
|
|
|
|
};
|
|
|
|
#endif
|