2014-03-01 00:52:32 +00:00
|
|
|
#pragma once
|
2013-04-09 18:13:47 +00:00
|
|
|
|
2014-06-20 01:30:09 +00:00
|
|
|
#include "GuiComponent.h"
|
|
|
|
#include "components/NinePatchComponent.h"
|
|
|
|
#include "components/ComponentGrid.h"
|
2014-03-22 01:12:57 +00:00
|
|
|
|
|
|
|
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-06-20 01:30:09 +00:00
|
|
|
GuiDetectDevice(Window* window, bool firstRun, const std::function<void()>& doneCallback);
|
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-05-17 00:14:22 +00:00
|
|
|
bool mFirstRun;
|
2014-03-22 01:12:57 +00:00
|
|
|
InputConfig* mHoldingConfig;
|
|
|
|
int mHoldTime;
|
|
|
|
|
|
|
|
NinePatchComponent mBackground;
|
|
|
|
ComponentGrid mGrid;
|
|
|
|
|
|
|
|
std::shared_ptr<TextComponent> mTitle;
|
2014-03-23 00:48:48 +00:00
|
|
|
std::shared_ptr<TextComponent> mMsg1;
|
|
|
|
std::shared_ptr<TextComponent> mMsg2;
|
2014-03-22 01:12:57 +00:00
|
|
|
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
|
|
|
};
|