diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2007-07-26 09:33:32 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2007-07-26 09:33:32 +0000 |
| commit | e260ea58e44e204b259383150f36f3d4082dc591 (patch) | |
| tree | 7afc4ed900aa282b4f32eb5e74757ac41faa274c /src/game/client/game_client.cpp | |
| parent | 3769853ba47efd9ff761fc48539758dd4b0b8e74 (diff) | |
| download | zcatch-e260ea58e44e204b259383150f36f3d4082dc591.tar.gz zcatch-e260ea58e44e204b259383150f36f3d4082dc591.zip | |
ingame menu looks better now
Diffstat (limited to 'src/game/client/game_client.cpp')
| -rw-r--r-- | src/game/client/game_client.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index f191b724..7c014cd3 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -23,6 +23,7 @@ static int gametype = GAMETYPE_DM; static int skinseed = 0; static int menu_team = 0; static int menu_quit = 0; +static int menu_resume = 0; static bool chat_active = false; static bool menu_active = false; @@ -1093,10 +1094,27 @@ void ingamemenu_render() } } - if (ui_do_button(&menu_quit, "Disconnect", 0, 30, 350, 170, 48, draw_teewars_button)) + const int column1_x = 275; + const int row1_y = 250; + const int row2_y = row1_y + 60; + + gfx_blend_normal(); + + gfx_texture_set(-1); + gfx_quads_begin(); + gfx_quads_setcolor(0,0,0,0.5f); + gfx_quads_drawTL(250, 225, 300, 160); + gfx_quads_end(); + + if (ui_do_button(&menu_resume, "Resume Game", 0, column1_x, row1_y, 250, 48, draw_teewars_button)) + { + menu_active = 0; + } + + if (ui_do_button(&menu_quit, "Disconnect", 0, column1_x, row2_y, 250, 48, draw_teewars_button)) { - //if (get_state() == STATE_CONNECTING || get_state() == STATE_ONLINE) - main_client.disconnect(); + menu_active = 0; + main_client.disconnect(); } gfx_texture_set(cursor_texture); |