mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-03 10:05:05 +01:00
18a26d7e1a
*Rewrote complete main menu function *Moved ext2/3/4 disc cache to mem2 as on FAT/NTFS (added ext2 as custom lib due to that) *Added missing header files from R1011 for ext support *Fixed crash on Numpad when pressing a button *Fixed boot of WiiMC *Changed SVN line ending to LF (Unix style)
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#ifndef _GUIGAMECAROUSEL_H_
|
|
#define _GUIGAMECAROUSEL_H_
|
|
|
|
#include "gui.h"
|
|
#include "../usbloader/disc.h"
|
|
class GuiImageAsync;
|
|
class GuiGameCarousel: public GuiElement
|
|
{
|
|
public:
|
|
GuiGameCarousel(int w, int h, const char *themePath, const u8 *imagebg, int imagebgsize, int selectedGame = 0);
|
|
~GuiGameCarousel();
|
|
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();
|
|
//GuiText * optionVal[PAGESIZE];
|
|
protected:
|
|
GuiImageData noCover;
|
|
int selectedItem;
|
|
int listOffset;
|
|
int scrollbaron;
|
|
int pagesize;
|
|
int speed;
|
|
int clickedItem;
|
|
|
|
int * gameIndex;
|
|
GuiButton ** game;
|
|
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;
|
|
};
|
|
#endif
|