home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad0615
)
New client: Handle width of stats window more flexibly.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 22 Nov 2015 20:11:07 +0000
(21:11 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 22 Nov 2015 20:11:07 +0000
(21:11 +0100)
client_prototype.py
patch
|
blob
|
history
diff --git
a/client_prototype.py
b/client_prototype.py
index 1801da1072f2cff77e5e1ca0e71420d5555c1ed8..ba9e54348af063f8d77b7b90f349759d8c7365bb 100644
(file)
--- 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