diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2007-07-26 09:40:46 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2007-07-26 09:40:46 +0000 |
| commit | 69581ebd2768b3fc59cef710148ae806757836aa (patch) | |
| tree | 226e28943000a578fe0c57eface96a4119aadb64 | |
| parent | e260ea58e44e204b259383150f36f3d4082dc591 (diff) | |
| download | zcatch-69581ebd2768b3fc59cef710148ae806757836aa.tar.gz zcatch-69581ebd2768b3fc59cef710148ae806757836aa.zip | |
use lan button added
| -rw-r--r-- | src/game/client/menu.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
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; |