mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 18:31:56 +01:00
eea639c177
fix TXTcheatpath not being saved made prompt and call you an idiot if you try to load in image that has bad dimensions. added stuff from the cheat menu to be translatable maybe fixed an issue with cheatcode names being too long and running on/off out of site un comment sam & max fix. we were under the impression that it only worked from disc but somebody said that it is working from USB also with ios rev 10 or 13a. i have left out the ios checks to see if it works with any ios and also it is only on if the game ID matches one of the two listed on wiiboxart.com for this game. drink a beer
72 lines
1.4 KiB
C++
72 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;
|
|
int drawTTs;
|
|
|
|
|
|
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;
|
|
|
|
GuiTooltip * titleTT;
|
|
|
|
|
|
GuiSound * btnSoundOver;
|
|
GuiSound * btnSoundClick;
|
|
GuiTrigger * trigA;
|
|
GuiTrigger * trigL;
|
|
GuiTrigger * trigR;
|
|
GuiTrigger * trigPlus;
|
|
GuiTrigger * trigMinus;
|
|
GuiTrigger * trig1;
|
|
GuiTrigger * trig2;
|
|
};
|
|
#endif
|