2009-10-01 01:10:58 +02:00
|
|
|
#ifndef _GUIGAMEGRID_H_
|
|
|
|
#define _GUIGAMEGRID_H_
|
|
|
|
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*Fixed bug mounting a wbfs partition which was formatted from an ext partition
*Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set.
*Saving password in config file is now encrypted
*Added loop to wait for usb when reloading the cIOS before game start
The parental control feature is filtering games like following when usb loader is locked:
level 0 (everyone 0+) > shows only games with lvl 0
level 1 (childs 7+) > shows games with lvl 0, 1
level 2 (teens 12+) > shows games with lvl 0, 1, 2
level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3
level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4)
level 4 is default when creating new configs
2010-12-19 19:20:33 +01:00
|
|
|
#include <vector>
|
2011-06-24 21:11:36 +02:00
|
|
|
#include "gui_gamebrowser.h"
|
|
|
|
#include "gui_image_async.h"
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*Fixed bug mounting a wbfs partition which was formatted from an ext partition
*Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set.
*Saving password in config file is now encrypted
*Added loop to wait for usb when reloading the cIOS before game start
The parental control feature is filtering games like following when usb loader is locked:
level 0 (everyone 0+) > shows only games with lvl 0
level 1 (childs 7+) > shows games with lvl 0, 1
level 2 (teens 12+) > shows games with lvl 0, 1, 2
level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3
level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4)
level 4 is default when creating new configs
2010-12-19 19:20:33 +01:00
|
|
|
#include "usbloader/disc.h"
|
|
|
|
|
2011-06-24 21:11:36 +02:00
|
|
|
class GuiGameGrid : public GuiGameBrowser
|
2010-02-09 11:59:55 +01:00
|
|
|
{
|
2010-09-19 01:16:05 +02:00
|
|
|
public:
|
2011-01-08 13:35:41 +01:00
|
|
|
GuiGameGrid(int w, int h, const char *themePath, int selectedGame = 0);
|
2011-06-24 21:11:36 +02:00
|
|
|
virtual ~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();
|
2011-06-24 21:11:36 +02:00
|
|
|
void SetSelectedOption(int ind);
|
|
|
|
void setListOffset(int off) { listOffset = off; Reload(rows, listOffset); }
|
|
|
|
int getListOffset() const { return listOffset; }
|
2010-09-19 01:16:05 +02:00
|
|
|
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);
|
|
|
|
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-12-26 18:02:14 +01:00
|
|
|
int theme_posX;
|
|
|
|
int theme_posY;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2011-06-25 21:50:57 +02:00
|
|
|
std::vector<int> gameIndex;
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*Fixed bug mounting a wbfs partition which was formatted from an ext partition
*Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set.
*Saving password in config file is now encrypted
*Added loop to wait for usb when reloading the cIOS before game start
The parental control feature is filtering games like following when usb loader is locked:
level 0 (everyone 0+) > shows only games with lvl 0
level 1 (childs 7+) > shows games with lvl 0, 1
level 2 (teens 12+) > shows games with lvl 0, 1, 2
level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3
level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4)
level 4 is default when creating new configs
2010-12-19 19:20:33 +01:00
|
|
|
std::vector<GuiButton *> game;
|
|
|
|
std::vector<GuiTooltip *> titleTT;
|
|
|
|
std::vector<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
|