2009-05-25 14:10:34 +02:00
|
|
|
#ifndef _GUIGAMEGRID_H_
|
|
|
|
#define _GUIGAMEGRID_H_
|
|
|
|
|
|
|
|
#include "gui.h"
|
|
|
|
#include "../disc.h"
|
|
|
|
|
|
|
|
class GuiGameGrid : public GuiElement
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiGameGrid(int w, int h, struct discHdr * l, int gameCnt, const char *themePath, const u8 *imagebg, int selected = 0, int offset = 0);
|
|
|
|
~GuiGameGrid();
|
|
|
|
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(struct discHdr * l, int count);
|
2009-06-10 12:05:43 +02:00
|
|
|
void ChangeRows(int n);
|
2009-05-25 14:10:34 +02:00
|
|
|
protected:
|
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int scrollbaron;
|
|
|
|
int pagesize;
|
2009-06-10 12:05:43 +02:00
|
|
|
int firstPic;
|
|
|
|
int speed;
|
|
|
|
int clickedItem;
|
|
|
|
int rows;
|
2009-05-25 14:10:34 +02:00
|
|
|
|
|
|
|
struct discHdr * gameList;
|
|
|
|
int gameCnt;
|
|
|
|
|
|
|
|
int * gameIndex;
|
2009-06-10 12:05:43 +02:00
|
|
|
int * bob;
|
|
|
|
|
2009-05-25 14:10:34 +02:00
|
|
|
GuiButton ** game;
|
2009-05-25 19:59:28 +02:00
|
|
|
|
2009-05-25 14:10:34 +02:00
|
|
|
GuiImage ** coverImg;
|
|
|
|
GuiImageData ** cover;
|
2009-06-10 12:05:43 +02:00
|
|
|
|
|
|
|
GuiText * debugTxt;
|
|
|
|
|
2009-05-25 14:10:34 +02:00
|
|
|
GuiButton * btnRight;
|
|
|
|
GuiButton * btnLeft;
|
2009-06-10 12:05:43 +02:00
|
|
|
GuiButton * btnRowUp;
|
|
|
|
GuiButton * btnRowDown;
|
2009-05-25 14:10:34 +02:00
|
|
|
|
|
|
|
GuiImage * btnLeftImg;
|
|
|
|
GuiImage * btnRightImg;
|
|
|
|
|
|
|
|
GuiImageData * imgLeft;
|
|
|
|
GuiImageData * imgRight;
|
|
|
|
|
|
|
|
GuiSound * btnSoundOver;
|
|
|
|
GuiSound * btnSoundClick;
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigL;
|
|
|
|
GuiTrigger * trigR;
|
|
|
|
GuiTrigger * trigPlus;
|
|
|
|
GuiTrigger * trigMinus;
|
2009-06-10 12:05:43 +02:00
|
|
|
GuiTrigger * trig1;
|
|
|
|
GuiTrigger * trig2;
|
2009-05-25 14:10:34 +02:00
|
|
|
};
|
|
|
|
#endif
|