Files
GabsPuNs-Project_Zenith_Main/Minecraft.Client/ErrorScreen.cpp
GabsPuNs bc6c09146a New File System and Cleanup some code Part 3
* Remove stdafx.h and some <unordered_set> includes
* Update Minecraft Server Defines and remove more unused folders/files
* Unbloat stdafx.h from Minecraft.World
2026-05-24 22:21:41 -04:00

26 lines
583 B
C++

#include "ErrorScreen.h"
ErrorScreen::ErrorScreen(const wstring& title, const wstring& 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(wchar_t eventCharacter, int eventKey)
{
}