2014-03-01 00:52:32 +00:00
|
|
|
#pragma once
|
2013-04-09 18:13:47 +00:00
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
#include "../GuiComponent.h"
|
2014-03-22 01:12:57 +00:00
|
|
|
#include "../components/NinePatchComponent.h"
|
|
|
|
#include "../components/ComponentGrid.h"
|
|
|
|
|
|
|
|
class TextComponent;
|
2013-04-09 18:13:47 +00:00
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
class GuiDetectDevice : public GuiComponent
|
2013-04-09 18:13:47 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-03-22 01:12:57 +00:00
|
|
|
GuiDetectDevice(Window* window, bool firstRun);
|
2013-04-09 18:13:47 +00:00
|
|
|
|
2014-03-22 01:12:57 +00:00
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
void update(int deltaTime) override;
|
|
|
|
void onSizeChanged() override;
|
2013-04-09 18:13:47 +00:00
|
|
|
|
|
|
|
private:
|
2014-03-22 01:12:57 +00:00
|
|
|
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;
|
2013-04-09 18:13:47 +00:00
|
|
|
|
2014-03-22 01:12:57 +00:00
|
|
|
std::function<void()> mDoneCallback;
|
2013-04-09 18:13:47 +00:00
|
|
|
};
|