ES-DE/src/guis/GuiDetectDevice.h

32 lines
706 B
C
Raw Normal View History

#pragma once
2013-06-02 15:08:32 +00:00
#include "../GuiComponent.h"
#include "../components/NinePatchComponent.h"
#include "../components/ComponentGrid.h"
class TextComponent;
2013-06-02 15:08:32 +00:00
class GuiDetectDevice : public GuiComponent
{
public:
GuiDetectDevice(Window* window, bool firstRun);
bool input(InputConfig* config, Input input) override;
void update(int deltaTime) override;
void onSizeChanged() override;
private:
InputConfig* mHoldingConfig;
int mHoldTime;
NinePatchComponent mBackground;
ComponentGrid mGrid;
std::shared_ptr<TextComponent> mTitle;
std::shared_ptr<TextComponent> mMsg;
std::shared_ptr<TextComponent> mDeviceInfo;
std::shared_ptr<TextComponent> mDeviceHeld;
std::function<void()> mDoneCallback;
};