From 512db83fc2b16a124ca25f22f0db6e4ed7ecabc0 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 22 Nov 2015 21:11:07 +0100 Subject: [PATCH] New client: Handle width of stats window more flexibly. --- client_prototype.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client_prototype.py b/client_prototype.py index 1801da1..ba9e543 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -252,11 +252,10 @@ def win_foo(): def win_info(): - size = [1, 33] winmap = "T: " + str(world_data["turn"]) \ + " H: " + str(world_data["lifepoints"]) \ + " S: " + str(world_data["satiation"]) - winmap = str(winmap).ljust(size[1]) + size = [1, len(winmap)] offset = [0, 0] return offset, size, winmap -- 2.30.2