usbloadergx/source/GUI/gui_gamegrid.h
dimok321 53574d6bc5 *threw out mxml because it is pissed on every little crap that is wrong in the xml and stops parsing the whole xml. Changed everything to use official TinyXML now (nice C++ classes). A lot of problems with categories and probably Wiinnertag now should be solved.
*fixed Theme Downloader to actually list the themes (wonder why no one reported that its broken)
*fixed freeze on 0 games and gameGrid
*added a "Sneek Video Patch" mode. According to WiiPower it can come in handy for some games. (Thanks to WiiPower)
*made showing categories on game details screen limited by the space available
*removed alt dol prompt on "default" setting for d2x users
*Added a Block SD Reload option
2011-06-25 19:50:57 +00:00

63 lines
1.6 KiB
C++

#ifndef _GUIGAMEGRID_H_
#define _GUIGAMEGRID_H_
#include <vector>
#include "gui_gamebrowser.h"
#include "gui_image_async.h"
#include "usbloader/disc.h"
class GuiGameGrid : public GuiGameBrowser
{
public:
GuiGameGrid(int w, int h, const char *themePath, int selectedGame = 0);
virtual ~GuiGameGrid();
int FindMenuItem(int c, int d);
int GetClickedOption();
int GetSelectedOption();
void SetSelectedOption(int ind);
void setListOffset(int off) { listOffset = off; Reload(rows, listOffset); }
int getListOffset() const { return listOffset; }
void ResetState();
void SetFocus(int f);
void Draw();
void Update(GuiTrigger * t);
void Reload(int Rows, int ListOffset);
void ChangeRows(int n);
protected:
GuiImageData noCover;
int selectedItem;
int listOffset;
int pagesize;
int clickedItem;
int rows;
int goLeft;
int goRight;
int theme_posX;
int theme_posY;
std::vector<int> gameIndex;
std::vector<GuiButton *> game;
std::vector<GuiTooltip *> titleTT;
std::vector<GuiImageAsync *> coverImg;
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;
};
#endif