2025-12-03 22:00:29 +11:00
|
|
|
#pragma once
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
2025-12-06 00:34:16 +11:00
|
|
|
#include "EpdFontFamily.h"
|
2025-12-03 22:00:29 +11:00
|
|
|
#include "Screen.h"
|
|
|
|
|
|
|
|
|
|
class FullScreenMessageScreen final : public Screen {
|
|
|
|
|
std::string text;
|
2025-12-06 00:34:16 +11:00
|
|
|
EpdFontStyle style;
|
2025-12-03 22:00:29 +11:00
|
|
|
bool invert;
|
2025-12-06 01:37:20 +11:00
|
|
|
bool partialUpdate;
|
2025-12-03 22:00:29 +11:00
|
|
|
|
|
|
|
|
public:
|
2025-12-06 12:56:39 +11:00
|
|
|
explicit FullScreenMessageScreen(EpdRenderer& renderer, InputManager& inputManager, std::string text,
|
2025-12-06 12:35:41 +11:00
|
|
|
const EpdFontStyle style = REGULAR, const bool invert = false,
|
|
|
|
|
const bool partialUpdate = true)
|
|
|
|
|
: Screen(renderer, inputManager),
|
|
|
|
|
text(std::move(text)),
|
|
|
|
|
style(style),
|
|
|
|
|
invert(invert),
|
|
|
|
|
partialUpdate(partialUpdate) {}
|
2025-12-03 22:00:29 +11:00
|
|
|
void onEnter() override;
|
|
|
|
|
};
|