mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
34 lines
797 B
C++
34 lines
797 B
C++
#pragma once
|
|
|
|
#include "GuiComponent.h"
|
|
#include "components/NinePatchComponent.h"
|
|
#include "components/ComponentGrid.h"
|
|
|
|
class TextComponent;
|
|
|
|
class GuiDetectDevice : public GuiComponent
|
|
{
|
|
public:
|
|
GuiDetectDevice(Window* window, bool firstRun, const std::function<void()>& doneCallback);
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
void update(int deltaTime) override;
|
|
void onSizeChanged() override;
|
|
|
|
private:
|
|
bool mFirstRun;
|
|
InputConfig* mHoldingConfig;
|
|
int mHoldTime;
|
|
|
|
NinePatchComponent mBackground;
|
|
ComponentGrid mGrid;
|
|
|
|
std::shared_ptr<TextComponent> mTitle;
|
|
std::shared_ptr<TextComponent> mMsg1;
|
|
std::shared_ptr<TextComponent> mMsg2;
|
|
std::shared_ptr<TextComponent> mDeviceInfo;
|
|
std::shared_ptr<TextComponent> mDeviceHeld;
|
|
|
|
std::function<void()> mDoneCallback;
|
|
};
|