From 69581ebd2768b3fc59cef710148ae806757836aa Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Thu, 26 Jul 2007 09:40:46 +0000 Subject: use lan button added --- src/game/client/menu.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp index 8b7dd7d1..675ce89d 100644 --- a/src/game/client/menu.cpp +++ b/src/game/client/menu.cpp @@ -724,9 +724,17 @@ static int main_render() } static int refresh_button, join_button, quit_button; + static int use_lan = 0; + + if (ui_do_button(&refresh_button, "Refresh", 0, 20, 460, 170, 48, draw_teewars_button)) + client_serverbrowse_refresh(use_lan); + + ui_do_label(60, 420, "Search LAN ", 36); + int last_lan = use_lan; + use_lan = ui_do_check_box(&use_lan, 20, 424, 32, 32, use_lan); + if (use_lan != last_lan) + client_serverbrowse_refresh(use_lan); - if (ui_do_button(&refresh_button, "Refresh", 0, 20, 420, 170, 48, draw_teewars_button)) - client_serverbrowse_refresh(0); /*if (selected_index == -1) { @@ -743,7 +751,7 @@ static int main_render() return -1; static int settings_button; - if (ui_do_button(&settings_button, "Settings", 0, 20, 490, 170, 48, draw_teewars_button)) + if (ui_do_button(&settings_button, "Settings", 0, 400, 490, 170, 48, draw_teewars_button)) { config_copy = config; screen = SCREEN_SETTINGS_GENERAL; -- cgit 1.4.1