From 74c4a52525363312b20bf0eb2f998acfc8c6ec28 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Nov 2008 12:56:11 +0000 Subject: fallback join menu --- src/ui/ui.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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 -- cgit v1.2.3