2014-06-25 16:29:58 +00:00
|
|
|
#pragma once
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_APP_GUIS_GUI_GAME_SCRAPER_H
|
|
|
|
#define ES_APP_GUIS_GUI_GAME_SCRAPER_H
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
#include "GuiComponent.h"
|
|
|
|
#include "components/ScraperSearchComponent.h"
|
|
|
|
#include "components/NinePatchComponent.h"
|
|
|
|
|
|
|
|
class GuiGameScraper : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiGameScraper(Window* window, ScraperSearchParams params, std::function<void(const ScraperSearchResult&)> doneFunc);
|
|
|
|
|
|
|
|
void onSizeChanged() override;
|
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
void update(int deltaTime);
|
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool mClose;
|
|
|
|
void close();
|
|
|
|
|
|
|
|
ComponentGrid mGrid;
|
|
|
|
NinePatchComponent mBox;
|
|
|
|
|
|
|
|
std::shared_ptr<TextComponent> mGameName;
|
|
|
|
std::shared_ptr<TextComponent> mSystemName;
|
|
|
|
std::shared_ptr<ScraperSearchComponent> mSearch;
|
|
|
|
std::shared_ptr<ComponentGrid> mButtonGrid;
|
|
|
|
|
|
|
|
ScraperSearchParams mSearchParams;
|
|
|
|
|
|
|
|
std::function<void()> mCancelFunc;
|
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_GUIS_GUI_GAME_SCRAPER_H
|