diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-15 13:16:33 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-15 13:16:33 +0000 |
| commit | 57b2c49d571ac160d03b9bc30b6eb72976bfe82a (patch) | |
| tree | 9e39336ac1976472b2a6a4fd69fa8e3b7f41bd9e /src/game/client/components/menus.hpp | |
| parent | feade98dae813a1cdff48c4f15b3c01fb1fd3e8d (diff) | |
| download | zcatch-57b2c49d571ac160d03b9bc30b6eb72976bfe82a.tar.gz zcatch-57b2c49d571ac160d03b9bc30b6eb72976bfe82a.zip | |
fixed so that the demo player doesn't crash when the map isn't found
Diffstat (limited to 'src/game/client/components/menus.hpp')
| -rw-r--r-- | src/game/client/components/menus.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/client/components/menus.hpp b/src/game/client/components/menus.hpp index 3ca3ee43..15369dbc 100644 --- a/src/game/client/components/menus.hpp +++ b/src/game/client/components/menus.hpp @@ -68,6 +68,7 @@ class MENUS : public COMPONENT POPUP_NONE=0, POPUP_FIRST_LAUNCH, POPUP_CONNECTING, + POPUP_MESSAGE, POPUP_DISCONNECTED, POPUP_PURE, POPUP_PASSWORD, @@ -95,6 +96,13 @@ class MENUS : public COMPONENT vec2 mouse_pos; int64 last_input; + + // + char message_topic[512]; + char message_body[512]; + char message_button[512]; + + void popup_message(const char *topic, const char *body, const char *button); // TODO: this is a bit ugly but.. well.. yeah enum { MAX_INPUTEVENTS = 32 }; |