Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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