2009-05-27 10:51:39 +02:00
|
|
|
#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
|
2010-02-09 11:59:55 +01:00
|
|
|
{
|
2010-09-19 01:16:05 +02:00
|
|
|
public:
|
2010-09-24 02:48:03 +02:00
|
|
|
GuiGameCarousel(int w, int h, const char *themePath, const u8 *imagebg, int selected = 0, int offset = 0);
|
2010-09-19 01:16:05 +02:00
|
|
|
~GuiGameCarousel();
|
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();
|
|
|
|
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);
|
2010-09-19 01:16:05 +02:00
|
|
|
int GetOffset();
|
|
|
|
void Reload();
|
|
|
|
//GuiText * optionVal[PAGESIZE];
|
|
|
|
protected:
|
2010-09-24 02:48:03 +02:00
|
|
|
GuiImageData noCover;
|
2010-09-19 01:16:05 +02:00
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int scrollbaron;
|
|
|
|
int pagesize;
|
|
|
|
int speed;
|
|
|
|
int clickedItem;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
int * gameIndex;
|
|
|
|
GuiButton ** game;
|
|
|
|
GuiImageAsync ** coverImg;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiText * gamename;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiButton * btnRight;
|
|
|
|
GuiButton * btnLeft;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiImage * btnLeftImg;
|
|
|
|
GuiImage * btnRightImg;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiImageData * imgLeft;
|
|
|
|
GuiImageData * imgRight;
|
2010-02-09 11:59:55 +01:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
GuiSound * btnSoundOver;
|
|
|
|
GuiSound * btnSoundClick;
|
|
|
|
GuiTrigger * trigA;
|
|
|
|
GuiTrigger * trigL;
|
|
|
|
GuiTrigger * trigR;
|
|
|
|
GuiTrigger * trigPlus;
|
|
|
|
GuiTrigger * trigMinus;
|
2009-05-27 10:51:39 +02:00
|
|
|
};
|
|
|
|
#endif
|