feat(jui): (re-)add transitional screens

Adds a new MessageScreen class to display custom messages and restores areas where ReceivingLevelScreen was used
This commit is contained in:
Sally Knight
2026-03-19 03:37:39 +03:00
parent 48b7d2f3a4
commit 7c3ba79f83
4 changed files with 56 additions and 7 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include "../Screen.h"
// 4jcraft addition
class MessageScreen : public Screen {
private:
std::wstring message;
public:
MessageScreen(const std::wstring& message);
protected:
using Screen::keyPressed;
virtual void keyPressed(char eventCharacter, int eventKey);
public:
virtual void init();
virtual void tick();
protected:
virtual void buttonClicked(Button* button);
public:
virtual void render(int xm, int ym, float a);
};