diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-22 09:15:34 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-22 09:15:34 +0000 |
| commit | 3b1871499c52a41c6fe1e017d6da858b7e70a396 (patch) | |
| tree | 410cca70987d8789088e25c8a8b5b24eb46a8c06 /src/game/client/game_client.cpp | |
| parent | 1950995bb5137e084b5706275cce1d9d7398fc34 (diff) | |
| download | zcatch-3b1871499c52a41c6fe1e017d6da858b7e70a396.tar.gz zcatch-3b1871499c52a41c6fe1e017d6da858b7e70a396.zip | |
laggometer, smaller gfx fixes
Diffstat (limited to 'src/game/client/game_client.cpp')
| -rw-r--r-- | src/game/client/game_client.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index c101b291..9ed43d1a 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -1108,6 +1108,8 @@ void modc_render() // pseudo format float zoom = 3.0f; + if(inp_key_pressed('I')) + zoom = 1.0f; float width = 400*zoom; float height = 300*zoom; @@ -1343,7 +1345,8 @@ void modc_render() { // Normal deathmatch - float x = 50.0f; + float w = 550.0f; + float x = width-w-50.0f; float y = 150.0f; gfx_blend_normal(); @@ -1351,7 +1354,7 @@ void modc_render() gfx_texture_set(-1); gfx_quads_begin(); gfx_quads_setcolor(0,0,0,0.5f); - gfx_quads_drawTL(x-10.f, y-10.f, 400.0f, 600.0f); + gfx_quads_drawTL(x-10.f, y-10.f, w, 600.0f); gfx_quads_end(); gfx_pretty_text(x, y, 64, "Score Board"); @@ -1386,6 +1389,9 @@ void modc_render() sprintf(buf, "%4d", player->score); gfx_pretty_text(x+60-gfx_pretty_text_width(48,buf), y, 48, buf); gfx_pretty_text(x+128, y, 48, client_datas[player->clientid].name); + sprintf(buf, "%4d", player->latency); + float tw = gfx_pretty_text_width(48.0f, buf); + gfx_pretty_text(x+w-tw-20, y, 48, buf); render_tee(&idlestate, player->clientid, vec2(1,0), vec2(x+90, y+24)); y += 58.0f; |