mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
6d6f0f2243
*Added a font scale factor to the settings. This font scale resizes the overall font sizes. Only full integer font sizes are supported. The font scale factor is multiplied to the font size of a text and the result is rounded and used as the font size. It's a good quick fix for too big fonts. *Fixed GAMEID_GAMETITLE folder game layout
65 lines
1.7 KiB
C++
65 lines
1.7 KiB
C++
#ifndef _GUIGAMEBROWSER_H_
|
|
#define _GUIGAMEBROWSER_H_
|
|
|
|
#include "gui.h"
|
|
#include "../usbloader/disc.h"
|
|
|
|
class GuiGameBrowser: public GuiElement
|
|
{
|
|
public:
|
|
GuiGameBrowser(int w, int h, int selectedGame = 0);
|
|
~GuiGameBrowser();
|
|
int FindMenuItem(int c, int d);
|
|
int GetClickedOption();
|
|
int GetSelectedOption() { return listOffset+selectedItem; }
|
|
void ResetState();
|
|
void SetFocus(int f);
|
|
void Draw();
|
|
void Update(GuiTrigger * t);
|
|
int GetOffset();
|
|
void Reload();
|
|
//GuiText * optionVal[PAGESIZE];
|
|
protected:
|
|
void UpdateListEntries();
|
|
int selectedItem;
|
|
int listOffset;
|
|
int scrollbaron;
|
|
int pagesize;
|
|
int maxTextWidth;
|
|
|
|
int * gameIndex;
|
|
GuiButton ** game;
|
|
GuiText ** gameTxt;
|
|
GuiText ** gameTxtOver;
|
|
GuiImage ** gameBg;
|
|
GuiImage ** newImg;
|
|
|
|
GuiButton * arrowUpBtn;
|
|
GuiButton * arrowDownBtn;
|
|
GuiButton * scrollbarBoxBtn;
|
|
|
|
GuiImage * bgGameImg;
|
|
GuiImage * scrollbarImg;
|
|
GuiImage * arrowDownImg;
|
|
GuiImage * arrowDownOverImg;
|
|
GuiImage * arrowUpImg;
|
|
GuiImage * arrowUpOverImg;
|
|
GuiImage * scrollbarBoxImg;
|
|
GuiImage * scrollbarBoxOverImg;
|
|
|
|
GuiImageData * bgGames;
|
|
GuiImageData * bgGamesEntry;
|
|
GuiImageData * newGames;
|
|
GuiImageData * scrollbar;
|
|
GuiImageData * arrowDown;
|
|
GuiImageData * arrowDownOver;
|
|
GuiImageData * arrowUp;
|
|
GuiImageData * arrowUpOver;
|
|
GuiImageData * scrollbarBox;
|
|
GuiImageData * scrollbarBoxOver;
|
|
|
|
GuiTrigger * trigA;
|
|
GuiTrigger * trigHeldA;
|
|
};
|
|
#endif
|