summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-18 18:03:14 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-18 18:03:14 +0200
commit1abc1581137fe968fb94f89810ac8563afbfd800 (patch)
treeff535023e1aeca12a87a04ed32a9b788313813d1
parent7c2dce0c669fdf695c4b1a637f9d46232154d9b9 (diff)
show mass/size on cells
-rw-r--r--gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index 92b1982..68aa48e 100644
--- a/gui.py
+++ b/gui.py
@@ -172,7 +172,7 @@ def draw_cell(cell):
# surface = draw_text(cell.name, (0, 0, 0), font_size)
# screen.blit(surface, (cx - (surface.get_width()/2), cy + radius + 5))
- draw_text((cx, cy), str(int(cell.mass)), (255, 255, 255), font_size, False, True)
+ draw_text((cx, cy), str(int(cell.mass))+"/"+str(int(cell.size)), (255, 255, 255), font_size, False, True)
# surface = draw_text(str(int(cell.mass)), (255, 255, 255), font_size)
# screen.blit(surface, (cx - (surface.get_width()/2), cy - (surface.get_height()/2)))
else: