From: Severin Meyer Date: Wed, 12 Oct 2016 18:26:53 +0000 (+0200) Subject: Further adjust font sizes and positions in badges X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F3%2Fhead;p=xonotic%2Fxonstat.git Further adjust font sizes and positions in badges --- diff --git a/xonstat/batch/badges/gen_badges.py b/xonstat/batch/badges/gen_badges.py index 40b81fd..6bd8bc2 100644 --- a/xonstat/batch/badges/gen_badges.py +++ b/xonstat/batch/badges/gen_badges.py @@ -37,18 +37,18 @@ skin_archer = Skin( "archer", #bg = "background_archer-v2_full", bg = "background_archer-v3", overlay = "", - nick_maxwidth = 260, - gametype_pos = (91,33), - nostats_pos = (91,59), - elo_pos = (91,47), - rank_pos = (91,58), - winp_pos = (509,20), - wins_pos = (508,35), - loss_pos = (508,45), - kdr_pos = (392,20), - kills_pos = (392,35), - deaths_pos = (392,45), - ptime_color = (0.05, 0.05, 0.1), + nick_maxwidth = 260, + gametype_pos = (95,33), + nostats_pos = (95,59), + elo_pos = (95,47), + rank_pos = (95,58), + winp_pos = (509,19), + wins_pos = (508,34), + loss_pos = (508,45), + kdr_pos = (392,19), + kills_pos = (392,34), + deaths_pos = (392,45), + ptime_color = (0.05, 0.05, 0.1), ) # minimal skin - writes PNGs into "output/minimal/###.png" @@ -87,7 +87,7 @@ skin_minimal = Skin( "minimal", kdr_colorbot = (0.8, 0.6, 0.6), kills_pos = None, deaths_pos = None, - winp_pos = (508,15), + winp_pos = (509,15), winp_fontsize = 11, winp_colortop = (0.6, 0.8, 0.8), winp_colormid = (0.6, 0.6, 0.6), diff --git a/xonstat/batch/badges/skin.py b/xonstat/batch/badges/skin.py index 4a90c44..421c0f9 100644 --- a/xonstat/batch/badges/skin.py +++ b/xonstat/batch/badges/skin.py @@ -67,7 +67,7 @@ class Skin: 'width': 560, 'height': 70, 'nick_fontsize': 22, - 'nick_pos': (53,21), + 'nick_pos': (53,20), 'nick_maxwidth': 270, 'gametype_fontsize':10, 'gametype_pos': (101,33), @@ -100,16 +100,16 @@ class Skin: 'wintext_text': "Win Percentage", 'wintext_align': 0, 'winp_fontsize': 15, - 'winp_pos': (508,19), + 'winp_pos': (509,18), 'winp_colortop': (0.2, 1.0, 1.0), 'winp_colormid': (0.4, 0.8, 0.4), 'winp_colorbot': (1.0, 1.0, 0.2), 'winp_align': 0, - 'wins_fontsize': 8, - 'wins_pos': (508,34), + 'wins_fontsize': 9, + 'wins_pos': (508,33), 'wins_color': (0.6, 0.8, 0.8), 'wins_align': 0, - 'loss_fontsize': 8, + 'loss_fontsize': 9, 'loss_pos': (508,44), 'loss_color': (0.8, 0.8, 0.6), 'loss_align': 0, @@ -121,21 +121,21 @@ class Skin: 'kdtext_text': "Kill Ratio", 'kdtext_align': 0, 'kdr_fontsize': 15, - 'kdr_pos': (392,19), + 'kdr_pos': (392,18), 'kdr_colortop': (0.2, 1.0, 0.2), 'kdr_colormid': (0.8, 0.8, 0.4), 'kdr_colorbot': (1.0, 0.2, 0.2), 'kdr_align': 0, - 'kills_fontsize': 8, - 'kills_pos': (392,34), + 'kills_fontsize': 9, + 'kills_pos': (392,33), 'kills_color': (0.6, 0.8, 0.6), 'kills_align': 0, - 'deaths_fontsize': 8, + 'deaths_fontsize': 9, 'deaths_pos': (392,44), 'deaths_color': (0.8, 0.6, 0.6), 'deaths_align': 0, 'ptime_fontsize': 10, - 'ptime_pos': (451,60), + 'ptime_pos': (451,59), 'ptime_color': (0.1, 0.1, 0.1), 'ptime_text': "Playing Time: %s", 'ptime_align': 0,