mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
27
Minecraft.Client/ErrorScreen.cpp
Normal file
27
Minecraft.Client/ErrorScreen.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include "stdafx.h"
|
||||
#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)
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue