2013-09-19 23:41:14 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
2014-03-12 03:00:08 +00:00
|
|
|
#include "../components/ScraperSearchComponent.h"
|
2014-03-01 00:52:32 +00:00
|
|
|
#include "../components/NinePatchComponent.h"
|
2013-09-24 04:58:59 +00:00
|
|
|
|
2013-09-19 23:41:14 +00:00
|
|
|
class GuiGameScraper : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
2014-03-18 21:05:56 +00:00
|
|
|
GuiGameScraper(Window* window, ScraperSearchParams params, std::function<void(const ScraperSearchResult&)> doneFunc);
|
2013-09-19 23:41:14 +00:00
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
2014-03-19 16:21:21 +00:00
|
|
|
void update(int deltaTime);
|
2014-01-25 23:34:29 +00:00
|
|
|
virtual std::vector<HelpPrompt> getHelpPrompts() override;
|
|
|
|
|
2013-09-19 23:41:14 +00:00
|
|
|
private:
|
2014-03-19 16:21:21 +00:00
|
|
|
bool mClose;
|
|
|
|
void close();
|
|
|
|
|
2014-03-12 03:00:08 +00:00
|
|
|
ComponentGrid mGrid;
|
2013-09-19 23:41:14 +00:00
|
|
|
NinePatchComponent mBox;
|
|
|
|
|
2014-03-12 03:00:08 +00:00
|
|
|
std::shared_ptr<ScraperSearchComponent> mSearch;
|
2013-09-19 23:41:14 +00:00
|
|
|
|
|
|
|
ScraperSearchParams mSearchParams;
|
|
|
|
|
2014-03-18 21:05:56 +00:00
|
|
|
std::function<void()> mCancelFunc;
|
2013-09-19 23:41:14 +00:00
|
|
|
};
|