From a132cba7ef5ba55485b07dd45b80a2eecc9f746a Mon Sep 17 00:00:00 2001 From: Khopa Date: Wed, 8 Aug 2018 22:30:33 +0200 Subject: [PATCH] Changed the color of text on map (easier to read this way for now imo) --- ui/overviewcanvas.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/overviewcanvas.py b/ui/overviewcanvas.py index d3ca3ac7..e3522e35 100644 --- a/ui/overviewcanvas.py +++ b/ui/overviewcanvas.py @@ -50,11 +50,12 @@ class OverviewCanvas: title = cp.name font = ("Helvetica", 10) - id = self.canvas.create_text(coords[0]+1, coords[1]+1, text=title, fill='white', font=font) - self.canvas.tag_bind(id, "", self.display(cp)) id = self.canvas.create_text(coords[0], coords[1], text=title, font=font) self.canvas.tag_bind(id, "", self.display(cp)) + id = self.canvas.create_text(coords[0]+1, coords[1]+1, text=title, fill='white', font=font) + self.canvas.tag_bind(id, "", self.display(cp)) + def _player_color(self): return self.game.player == "USA" and "blue" or "red" @@ -116,7 +117,8 @@ class OverviewCanvas: self.create_cp_title((coords[0] + arc_size/4, coords[1] + arc_size/4), cp) units_title = "{}/{}/{}".format(cp.base.total_planes, cp.base.total_armor, cp.base.total_aa) - self.canvas.create_text(coords[0], coords[1] - arc_size / 1.5, text=units_title, font=("Helvetica", 10)) + self.canvas.create_text(coords[0]+1, coords[1] - arc_size / 1.5 +1, text=units_title, font=("Helvetica", 10), fill=color) + self.canvas.create_text(coords[0], coords[1] - arc_size / 1.5, text=units_title, font=("Helvetica", 10), fill="white") def display(self, cp: ControlPoint): def action(_):