mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 18:31:56 +01:00
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
#ifndef _GUIGAMEGRID_H_
|
|
#define _GUIGAMEGRID_H_
|
|
|
|
#include "gui.h"
|
|
#include "../usbloader/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);
|
|
void ChangeRows(int n);
|
|
protected:
|
|
int selectedItem;
|
|
int listOffset;
|
|
int scrollbaron;
|
|
int pagesize;
|
|
int firstPic;
|
|
int speed;
|
|
int clickedItem;
|
|
int rows;
|
|
|
|
struct discHdr * gameList;
|
|
int gameCnt;
|
|
|
|
int * gameIndex;
|
|
int * bob;
|
|
|
|
GuiButton ** game;
|
|
|
|
GuiImage ** coverImg;
|
|
GuiImageData ** cover;
|
|
|
|
GuiText * debugTxt;
|
|
|
|
GuiButton * btnRight;
|
|
GuiButton * btnLeft;
|
|
GuiButton * btnRowUp;
|
|
GuiButton * btnRowDown;
|
|
|
|
GuiImage * btnLeftImg;
|
|
GuiImage * btnRightImg;
|
|
|
|
GuiImageData * imgLeft;
|
|
GuiImageData * imgRight;
|
|
|
|
GuiSound * btnSoundOver;
|
|
GuiSound * btnSoundClick;
|
|
GuiTrigger * trigA;
|
|
GuiTrigger * trigL;
|
|
GuiTrigger * trigR;
|
|
GuiTrigger * trigPlus;
|
|
GuiTrigger * trigMinus;
|
|
GuiTrigger * trig1;
|
|
GuiTrigger * trig2;
|
|
};
|
|
#endif
|