|
@@ -5,6 +5,8 @@
|
5
|
5
|
* \author xythobuz
|
6
|
6
|
*/
|
7
|
7
|
|
|
8
|
+#include <cstdarg>
|
|
9
|
+
|
8
|
10
|
#ifdef __APPLE__
|
9
|
11
|
#include <OpenGL/gl.h>
|
10
|
12
|
#include <OpenGL/glu.h>
|
|
@@ -42,6 +44,22 @@ bool Menu::isVisible() {
|
42
|
44
|
return mVisible;
|
43
|
45
|
}
|
44
|
46
|
|
|
47
|
+void Menu::drawText(unsigned int x, unsigned int y, float scale, const char *s, ...) {
|
|
48
|
+ va_list args;
|
|
49
|
+ va_start(args, s);
|
|
50
|
+ WindowString w;
|
|
51
|
+ w.text = bufferString(s, args);
|
|
52
|
+ va_end(args);
|
|
53
|
+ w.scale = scale;
|
|
54
|
+ w.x = x;
|
|
55
|
+ w.y = y;
|
|
56
|
+ w.color[0] = 0xFF;
|
|
57
|
+ w.color[1] = 0xFF;
|
|
58
|
+ w.color[2] = 0xFF;
|
|
59
|
+ w.color[3] = 0xFF;
|
|
60
|
+ gOpenRaider->mWindow->writeString(&w);
|
|
61
|
+}
|
|
62
|
+
|
45
|
63
|
void Menu::display() {
|
46
|
64
|
Window *window = gOpenRaider->mWindow;
|
47
|
65
|
|
|
@@ -56,6 +74,16 @@ void Menu::display() {
|
56
|
74
|
mainText.x = (window->mWidth / 2) - (mainText.w / 2);
|
57
|
75
|
mainText.y = 10;
|
58
|
76
|
window->writeString(&mainText);
|
|
77
|
+
|
|
78
|
+ drawText(20, (window->mHeight / 2) - 20, 0.75f, "Generating map list...");
|
59
|
79
|
}
|
60
|
80
|
}
|
61
|
81
|
|
|
82
|
+void Menu::actionMouse(unsigned int x, unsigned int y, int button) {
|
|
83
|
+
|
|
84
|
+}
|
|
85
|
+
|
|
86
|
+void Menu::actionKeyboard(int key) {
|
|
87
|
+
|
|
88
|
+}
|
|
89
|
+
|