]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Further adjust font sizes and positions in badges 3/head
authorSeverin Meyer <sev.ch@web.de>
Wed, 12 Oct 2016 18:26:53 +0000 (20:26 +0200)
committerSeverin Meyer <sev.ch@web.de>
Wed, 12 Oct 2016 18:26:53 +0000 (20:26 +0200)
xonstat/batch/badges/gen_badges.py
xonstat/batch/badges/skin.py

index 40b81fdf1511b125163fa1e095554cc3c8c6bc15..6bd8bc2b2e200b95824e38ea3dae5e1f27637813 100644 (file)
@@ -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),
index 4a90c4470c67faf87f28d66670966339a6b9eb7d..421c0f9b3c055074921fadcb76bf3559ad004852 100644 (file)
@@ -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,