2009-10-01 01:10:58 +02:00
|
|
|
#ifndef _GUIGAMEGRID_H_
|
|
|
|
#define _GUIGAMEGRID_H_
|
|
|
|
|
|
|
|
#include "gui.h"
|
|
|
|
#include "../usbloader/disc.h"
|
|
|
|
class GuiImageAsync;
|
2010-09-24 02:48:03 +02:00
|
|
|
class GuiGameGrid: public GuiElement
|
2010-02-09 11:59:55 +01:00
|
|
|
{
|
2010-09-19 01:16:05 +02:00
|
|
|
public:
|
2010-09-24 02:48:03 +02:00
|
|
|
GuiGameGrid(int w, int h, const char *themePath, const u8 *imagebg, int selected = 0, int offset = 0);
|
2010-09-19 01:16:05 +02:00
|
|
|
~GuiGameGrid();
|
2010-09-24 02:48:03 +02:00
|
|
|
int FindMenuItem(int c, int d);
|
2010-09-19 01:16:05 +02:00
|
|
|
int GetClickedOption();
|
|
|
|
int GetSelectedOption();
|
|
|
|
void ResetState();
|
2010-09-24 02:48:03 +02:00
|
|
|
void SetFocus(int f);
|
2010-09-19 01:16:05 +02:00
|
|
|
void Draw();
|
2010-09-24 02:48:03 +02:00
|
|
|
void Update(GuiTrigger * t);
|
2010-09-19 01:16:05 +02:00
|
|
|
int GetOffset();
|
2010-09-24 02:48:03 +02:00
|
|
|
void Reload(int Rows, int ListOffset);
|
|
|
|
void ChangeRows(int n);
|
2010-09-19 01:16:05 +02:00
|
|
|
protected:
|
2010-09-24 02:48:03 +02:00
|
|
|
GuiImageData noCover;
|
2010-09-19 01:16:05 +02:00
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int pagesize;
|
|
|
|
int clickedItem;
|
|
|
|
int rows;
|
|
|
|
int goLeft;
|
|
|
|
int goRight;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
int * gameIndex;
|
|
|
|
GuiButton ** game;
|
|
|
|
GuiTooltip ** titleTT;
|
|
|
|
GuiImageAsync ** coverImg;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiButton * btnRight;
|
|
|
|
GuiButton * btnLeft;
|
|
|
|
GuiButton * btnRowUp;
|
|
|
|
GuiButton * btnRowDown;
|
|
|
|
|
|
|
|
GuiImage * btnLeftImg;
|
|
|
|
GuiImage * btnRightImg;
|
|
|
|
|
|
|
|
GuiImageData * imgLeft;
|
|
|
|
GuiImageData * imgRight;
|
|
|
|
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigL;
|
|
|
|
GuiTrigger * trigR;
|
|
|
|
GuiTrigger * trigPlus;
|
|
|
|
GuiTrigger * trigMinus;
|
|
|
|
GuiTrigger * trig1;
|
|
|
|
GuiTrigger * trig2;
|
2009-10-01 01:10:58 +02:00
|
|
|
};
|
|
|
|
#endif
|