2011-06-24 21:11:36 +02:00
|
|
|
#ifndef _GUIGAMELIST_H_
|
|
|
|
#define _GUIGAMELIST_H_
|
|
|
|
|
|
|
|
#include "gui_gamebrowser.h"
|
|
|
|
#include "gui_scrollbar.hpp"
|
|
|
|
#include "usbloader/disc.h"
|
|
|
|
|
|
|
|
class GuiGameList : public GuiGameBrowser, public sigslot::has_slots<>
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
GuiGameList(int w, int h, int listOffset = 0);
|
|
|
|
virtual ~GuiGameList();
|
|
|
|
int GetClickedOption();
|
|
|
|
int GetSelectedOption() { return listOffset+selectedItem; }
|
|
|
|
void SetSelectedOption(int ind);
|
2011-06-24 21:11:36 +02:00
|
|
|
void setListOffset(int off);
|
|
|
|
int getListOffset() const { return listOffset; }
|
2011-07-26 00:28:22 +02:00
|
|
|
void ResetState();
|
|
|
|
void SetFocus(int f);
|
|
|
|
void Draw();
|
|
|
|
void Update(GuiTrigger * t);
|
|
|
|
protected:
|
|
|
|
void onListChange(int SelItem, int SelInd);
|
|
|
|
void UpdateListEntries();
|
|
|
|
int selectedItem;
|
|
|
|
int listOffset;
|
|
|
|
int pagesize;
|
|
|
|
int maxTextWidth;
|
2011-06-24 21:11:36 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiButton ** game;
|
|
|
|
GuiText ** gameTxt;
|
|
|
|
GuiText ** gameTxtOver;
|
|
|
|
GuiImage ** gameBg;
|
|
|
|
GuiImage ** newImg;
|
2011-06-24 21:11:36 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiImage * bgGameImg;
|
2011-06-24 21:11:36 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiImageData * bgGames;
|
|
|
|
GuiImageData * bgGamesEntry;
|
|
|
|
GuiImageData * newGames;
|
2011-06-24 21:11:36 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiTrigger * trigA;
|
2011-06-24 21:11:36 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
GuiScrollbar scrollBar;
|
2011-06-24 21:11:36 +02:00
|
|
|
};
|
|
|
|
#endif
|