Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-08 12:56:11 +0000
committerStijn Buys <ingar@osirion.org>2008-11-08 12:56:11 +0000
commit74c4a52525363312b20bf0eb2f998acfc8c6ec28 (patch)
tree6903b6f24e3b38095f5e4a071295084926efcf7a /src/ui
parentf961a2fb478a44958d4cf727ebabff99252133b0 (diff)
fallback join menu
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/ui.cc b/src/ui/ui.cc
index b403c3e..4774387 100644
--- a/src/ui/ui.cc
+++ b/src/ui/ui.cc
@@ -344,6 +344,16 @@ void UI::load()
menu->add_button("Disconnect", "disconnect");
menu->add_button("Quit", "quit");
}
+
+ // fallback join menu
+ if (!find_menu("join")) {
+ con_warn << "menu 'join' not found, using default" << std::endl;
+ Menu *menu = new Menu(this, "join");
+ menu->add_label("Join Menu");
+ menu->add_button("Join", "join; menu hide");
+ menu->add_button("Game menu", "menu game");
+ }
+
}
void UI::list() const