mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-27 04:01:52 +01:00
8bec876889
*Lot's of changes in image processing *Added use of libgd and ImageData class from WiiXplorer. No more crashes with corrupted images and no more restriction to images sizes that are devidable by 4 :). *Added a recource file manager for better access of all files/images for internal files and theme files. Some themes will have to adjust some filenames because we want to use the same filenames for themes and internal source files.
55 lines
1.4 KiB
C++
55 lines
1.4 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 selected = 0, int offset = 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;
|
|
|
|
GuiSound * btnSoundOver;
|
|
GuiSound * btnSoundClick;
|
|
GuiTrigger * trigA;
|
|
GuiTrigger * trigL;
|
|
GuiTrigger * trigR;
|
|
GuiTrigger * trigPlus;
|
|
GuiTrigger * trigMinus;
|
|
};
|
|
#endif
|