home · contact · privacy
New client: Handle width of stats window more flexibly.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 22 Nov 2015 20:11:07 +0000 (21:11 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 22 Nov 2015 20:11:07 +0000 (21:11 +0100)
client_prototype.py

index 1801da1072f2cff77e5e1ca0e71420d5555c1ed8..ba9e54348af063f8d77b7b90f349759d8c7365bb 100644 (file)
@@ -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