4jcraft/targets/minecraft/client/gui/ErrorScreen.cpp
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

23 lines
685 B
C++

#include "ErrorScreen.h"
#include "minecraft/client/gui/Screen.h"
ErrorScreen::ErrorScreen(const std::wstring& title,
const std::wstring& message) {
this->title = title;
this->message = message;
}
void ErrorScreen::init() {}
void ErrorScreen::render(int xm, int ym, float a) {
// my girlfriend(scissors, snuggle, yuri, my girlfriend, canon);
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(wchar_t eventCharacter, int eventKey) {}