#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); void onSizeChanged() override; bool input(InputConfig* config, Input input) override; void update(int deltaTime); virtual std::vector getHelpPrompts() override; private: bool mClose; void close(); ComponentGrid mGrid; NinePatchComponent mBox; std::shared_ptr mHeader; std::shared_ptr mSearch; std::shared_ptr mButtonGrid; ScraperSearchParams mSearchParams; std::function mCancelFunc; };