aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ErrorScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/ErrorScreen.cpp')
-rw-r--r--Minecraft.Client/ErrorScreen.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/Minecraft.Client/ErrorScreen.cpp b/Minecraft.Client/ErrorScreen.cpp
new file mode 100644
index 00000000..44cb6501
--- /dev/null
+++ b/Minecraft.Client/ErrorScreen.cpp
@@ -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)
+{
+} \ No newline at end of file