2025-12-17 23:32:18 +11:00
|
|
|
#pragma once
|
|
|
|
|
#include <EInkDisplay.h>
|
|
|
|
|
#include <EpdFontFamily.h>
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
|
|
#include "../Activity.h"
|
|
|
|
|
|
|
|
|
|
class FullScreenMessageActivity final : public Activity {
|
|
|
|
|
std::string text;
|
|
|
|
|
EpdFontStyle style;
|
|
|
|
|
EInkDisplay::RefreshMode refreshMode;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit FullScreenMessageActivity(GfxRenderer& renderer, InputManager& inputManager, std::string text,
|
|
|
|
|
const EpdFontStyle style = REGULAR,
|
|
|
|
|
const EInkDisplay::RefreshMode refreshMode = EInkDisplay::FAST_REFRESH)
|
2025-12-21 21:17:00 +11:00
|
|
|
: Activity("FullScreenMessage", renderer, inputManager),
|
|
|
|
|
text(std::move(text)),
|
|
|
|
|
style(style),
|
|
|
|
|
refreshMode(refreshMode) {}
|
2025-12-17 23:32:18 +11:00
|
|
|
void onEnter() override;
|
|
|
|
|
};
|