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:
|
2013-09-23 00:40:51 +00:00
|
|
|
GuiGameScraper(Window* window, ScraperSearchParams params, std::function<void(MetaDataList)> doneFunc, std::function<void()> skipFunc = nullptr);
|
2013-09-19 23:41:14 +00:00
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
2013-09-20 23:55:05 +00:00
|
|
|
void update(int deltaTime) override;
|
2013-09-19 23:41:14 +00:00
|
|
|
|
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-12 03:00:08 +00:00
|
|
|
int mSearchCountdown; // haaack
|
2013-09-19 23:41:14 +00:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
std::function<void(MetaDataList)> mDoneFunc;
|
|
|
|
std::function<void()> mSkipFunc;
|
|
|
|
};
|