From 0d256103d30baad3e040a7ca8d6e2e92f678a346 Mon Sep 17 00:00:00 2001 From: "Jan D. Behrens" Date: Thu, 30 Aug 2012 13:15:29 +0200 Subject: [PATCH] Fixed gametype display in "minimal" skin --- xonstat/batch/badges/gen_badges.py | 19 ++++++++++--------- xonstat/batch/badges/skin.py | 6 +++++- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/xonstat/batch/badges/gen_badges.py b/xonstat/batch/badges/gen_badges.py index 82620b2..1d3acf1 100644 --- a/xonstat/batch/badges/gen_badges.py +++ b/xonstat/batch/badges/gen_badges.py @@ -42,23 +42,24 @@ skin_minimal = Skin( "minimal", nick_pos = (36,16), num_gametypes = 3, nick_maxwidth = 300, - gametype_pos = (78,30), + gametype_pos = (70,30), gametype_color = (0.0, 0.0, 0.0), gametype_text = "%s:", - gametype_width = 96, + gametype_width = 100, gametype_fontsize = 10, gametype_align = -1, - elo_pos = (82,30), + gametype_upper = False, + elo_pos = (75,30), elo_text = "Elo %.0f", elo_color = (0.7, 0.7, 0.7), elo_align = 1, rank_pos = None, - nostats_pos = (82,30), - nostats_fontsize = 10, - nostats_angle = 0, - nostats_text = "no stats!", - nostats_color = (0.7, 0.4, 0.4), - nostats_center = False, + nostats_pos = None, + #nostats_pos = (75,30), + #nostats_fontsize = 10, + #nostats_angle = 0, + #nostats_text = "no stats yet!", + #nostats_color = (0.7, 0.4, 0.4), kdr_pos = (392,15), kdr_fontsize = 10, kdr_colortop = (0.6, 0.8, 0.6), diff --git a/xonstat/batch/badges/skin.py b/xonstat/batch/badges/skin.py index 5083446..40ae0eb 100644 --- a/xonstat/batch/badges/skin.py +++ b/xonstat/batch/badges/skin.py @@ -76,6 +76,7 @@ class Skin: 'gametype_color': (0.9, 0.9, 0.9), 'gametype_text': "%s", 'gametype_align': 0, + 'gametype_upper': True, 'num_gametypes': 3, 'nostats_fontsize': 12, 'nostats_pos': (101,59), @@ -345,7 +346,10 @@ class Skin: offset = (xoffset, yoffset) if self.gametype_pos: - txt = self.gametype_text % gt.upper() + if self.gametype_upper: + txt = self.gametype_text % gt.upper() + else: + txt = self.gametype_text % gt.lower() self.set_font(self.gametype_fontsize, self.gametype_color, bold=True) self.show_text(txt, self.gametype_pos, self.gametype_align, offset=offset) -- 2.39.2