2010-11-13 23:34:53 +01:00
|
|
|
#ifndef _GUIGAMECAROUSEL_H_
|
|
|
|
#define _GUIGAMECAROUSEL_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 GuiGameCarousel : public GuiGameBrowser
|
2010-11-13 23:34:53 +01:00
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
GuiGameCarousel(int w, int h, const char *themePath, int listOffset = 0);
|
|
|
|
virtual ~GuiGameCarousel();
|
|
|
|
int FindMenuItem(int c, int d);
|
|
|
|
int GetClickedOption();
|
|
|
|
int GetSelectedOption();
|
|
|
|
void SetSelectedOption(int ind);
|
|
|
|
void setListOffset(int off);
|
|
|
|
int getListOffset() const;
|
|
|
|
void Refresh();
|
|
|
|
void ResetState();
|
|
|
|
void SetFocus(int f);
|
|
|
|
void Draw();
|
|
|
|
void Update(GuiTrigger * t);
|
|
|
|
protected:
|
|
|
|
GuiImageData noCover;
|
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int scrollbaron;
|
|
|
|
int pagesize;
|
|
|
|
int speed;
|
|
|
|
int clickedItem;
|
|
|
|
|
|
|
|
int * gameIndex;
|
|
|
|
std::vector<GuiButton *> game;
|
|
|
|
std::vector<GuiImageAsync *> coverImg;
|
|
|
|
|
|
|
|
GuiText * gamename;
|
|
|
|
|
|
|
|
GuiButton * btnRight;
|
|
|
|
GuiButton * btnLeft;
|
|
|
|
|
|
|
|
GuiImage * btnLeftImg;
|
|
|
|
GuiImage * btnRightImg;
|
|
|
|
|
|
|
|
GuiImageData * imgLeft;
|
|
|
|
GuiImageData * imgRight;
|
|
|
|
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigL;
|
|
|
|
GuiTrigger * trigR;
|
|
|
|
GuiTrigger * trigPlus;
|
|
|
|
GuiTrigger * trigMinus;
|
2010-11-13 23:34:53 +01:00
|
|
|
};
|
|
|
|
#endif
|