#pragma once #include "../GuiComponent.h" #include "../components/ScraperSearchComponent.h" #include "../components/NinePatchComponent.h" class GuiGameScraper : public GuiComponent { public: GuiGameScraper(Window* window, ScraperSearchParams params, std::function doneFunc, std::function skipFunc = nullptr); bool input(InputConfig* config, Input input) override; void update(int deltaTime) override; virtual std::vector getHelpPrompts() override; private: int mSearchCountdown; // haaack ComponentGrid mGrid; NinePatchComponent mBox; std::shared_ptr mSearch; ScraperSearchParams mSearchParams; std::function mDoneFunc; std::function mSkipFunc; };