31 lines
693 B
C++
31 lines
693 B
C++
#pragma once
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#include "../../fontIds.h"
|
|
#include "../Activity.h"
|
|
|
|
class ConfirmationActivity : public Activity {
|
|
private:
|
|
// Input data
|
|
std::string heading;
|
|
std::string body;
|
|
|
|
const int margin = 20;
|
|
const int spacing = 30;
|
|
const int fontId = UI_10_FONT_ID;
|
|
|
|
std::string safeHeading;
|
|
std::string safeBody;
|
|
int startY = 0;
|
|
int lineHeight = 0;
|
|
bool inputArmed = false;
|
|
|
|
public:
|
|
ConfirmationActivity(GfxRenderer& renderer, MappedInputManager& mappedInput, const std::string& heading,
|
|
const std::string& body);
|
|
|
|
void onEnter() override;
|
|
void loop() override;
|
|
void render(RenderLock&& lock) override;
|
|
}; |