From 1abc1581137fe968fb94f89810ac8563afbfd800 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 18 Aug 2015 18:03:14 +0200 Subject: show mass/size on cells --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3