2012-07-20 01:08:29 +00:00
|
|
|
#ifndef _GUIGAMELIST_H_
|
|
|
|
#define _GUIGAMELIST_H_
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
|
|
|
#include "GuiList.h"
|
2012-08-02 01:43:55 +00:00
|
|
|
#include "GuiImage.h"
|
2012-07-20 01:08:29 +00:00
|
|
|
#include <string>
|
2012-07-27 16:58:27 +00:00
|
|
|
#include <stack>
|
2012-07-20 16:14:09 +00:00
|
|
|
#include "../SystemData.h"
|
|
|
|
#include "../GameData.h"
|
2012-07-27 16:58:27 +00:00
|
|
|
#include "../FolderData.h"
|
2012-07-20 01:08:29 +00:00
|
|
|
|
|
|
|
class GuiGameList : GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
2012-08-02 01:43:55 +00:00
|
|
|
GuiGameList(bool useDetail = false);
|
2012-07-21 19:06:24 +00:00
|
|
|
~GuiGameList();
|
|
|
|
|
2012-07-20 16:14:09 +00:00
|
|
|
void updateList();
|
2012-07-21 20:57:53 +00:00
|
|
|
void setSystemId(int id);
|
2012-07-20 01:08:29 +00:00
|
|
|
|
|
|
|
void onRender();
|
2012-07-21 19:06:24 +00:00
|
|
|
void onInput(InputManager::InputButton button, bool keyDown);
|
2012-08-02 04:03:15 +00:00
|
|
|
void onPause();
|
|
|
|
void onResume();
|
2012-07-27 16:58:27 +00:00
|
|
|
|
2012-07-20 01:08:29 +00:00
|
|
|
private:
|
2012-07-20 16:14:09 +00:00
|
|
|
SystemData* mSystem;
|
2012-07-27 16:58:27 +00:00
|
|
|
FolderData* mFolder;
|
|
|
|
std::stack<FolderData*> mFolderStack;
|
2012-07-21 20:57:53 +00:00
|
|
|
int mSystemId;
|
2012-08-02 01:43:55 +00:00
|
|
|
bool mDetailed;
|
|
|
|
|
2012-08-02 04:50:18 +00:00
|
|
|
GuiList<FileData*>* mList;
|
2012-08-02 01:43:55 +00:00
|
|
|
GuiImage* mScreenshot;
|
2012-07-20 01:08:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|