mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 05:53:38 +00:00
23 lines
657 B
C++
23 lines
657 B
C++
#include "ErrorScreen.h"
|
|
|
|
#include "minecraft/client/gui/Screen.h"
|
|
|
|
ErrorScreen::ErrorScreen(const std::string& title,
|
|
const std::string& message) {
|
|
this->title = title;
|
|
this->message = message;
|
|
}
|
|
|
|
void ErrorScreen::init() {}
|
|
|
|
void ErrorScreen::render(int xm, int ym, float a) {
|
|
// fill(0, 0, width, height, 0x40000000);
|
|
fillGradient(0, 0, width, height, 0xff402020, 0xff501010);
|
|
|
|
drawCenteredString(font, title, width / 2, 90, 0xffffff);
|
|
drawCenteredString(font, message, width / 2, 110, 0xffffff);
|
|
|
|
Screen::render(xm, ym, a);
|
|
}
|
|
|
|
void ErrorScreen::keyPressed(char eventCharacter, int eventKey) {} |