mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
bc72990f39
Half of the ES code has been missing for 5 days because I am incompetent
34 lines
831 B
C++
34 lines
831 B
C++
#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<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;
|
|
};
|