From: Christian Heller Date: Sun, 22 Nov 2015 20:11:07 +0000 (+0100) Subject: New client: Handle width of stats window more flexibly. X-Git-Tag: tce~251 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/coming?a=commitdiff_plain;h=512db83fc2b16a124ca25f22f0db6e4ed7ecabc0;p=plomrogue New client: Handle width of stats window more flexibly. --- 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