usbloadergx/source/libwiigui/gui_gamecarousel.h

55 lines
1.4 KiB
C
Raw Normal View History

#ifndef _GUIGAMECAROUSEL_H_
#define _GUIGAMECAROUSEL_H_
#include "gui.h"
2009-06-13 02:24:36 +02:00
#include "../usbloader/disc.h"
2009-09-27 20:19:53 +02:00
class GuiImageAsync;
2010-09-24 02:48:03 +02:00
class GuiGameCarousel: public GuiElement
{
public:
GuiGameCarousel(int w, int h, const char *themePath, const u8 *imagebg, int imagebgsize, int selected = 0, int offset = 0);
~GuiGameCarousel();
2010-09-24 02:48:03 +02:00
int FindMenuItem(int c, int d);
int GetClickedOption();
int GetSelectedOption();
void ResetState();
2010-09-24 02:48:03 +02:00
void SetFocus(int f);
void Draw();
2010-09-24 02:48:03 +02:00
void Update(GuiTrigger * t);
int GetOffset();
void Reload();
//GuiText * optionVal[PAGESIZE];
protected:
2010-09-24 02:48:03 +02:00
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;
GuiSound * btnSoundOver;
GuiSound * btnSoundClick;
GuiTrigger * trigA;
GuiTrigger * trigL;
GuiTrigger * trigR;
GuiTrigger * trigPlus;
GuiTrigger * trigMinus;
};
#endif