From 04362892b316c3b93d6ed2e842d841ee26fa7bbe Mon Sep 17 00:00:00 2001 From: cadon Date: Mon, 18 Jul 2022 22:53:18 +0200 Subject: [PATCH] fix infographic vertical text alignment of wild level --- ARKBreedingStats/library/CreatureInfoGraphic.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ARKBreedingStats/library/CreatureInfoGraphic.cs b/ARKBreedingStats/library/CreatureInfoGraphic.cs index 5c17ad2e..b4051849 100644 --- a/ARKBreedingStats/library/CreatureInfoGraphic.cs +++ b/ARKBreedingStats/library/CreatureInfoGraphic.cs @@ -73,6 +73,7 @@ public static Bitmap InfoGraphic(this Creature creature, CreatureCollection cc, using (var fontBrush = new SolidBrush(foreColor)) using (var borderAroundColors = new Pen(Utils.ForeColor(backColor), 1)) using (var stringFormatRight = new StringFormat { Alignment = StringAlignment.Far }) + using (var stringFormatRightUp = new StringFormat { Alignment = StringAlignment.Far, LineAlignment = StringAlignment.Far }) { g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; int currentYPosition = frameThickness * 3; @@ -288,7 +289,7 @@ public static Bitmap InfoGraphic(this Creature creature, CreatureCollection cc, if (cc != null && displayMaxWildLevel) { g.DrawString($"{Loc.S("max wild level")}: {cc.maxWildLevel}", - fontSmall, fontBrush, width - 2 * frameThickness, height - fontSizeSmall - 4 * frameThickness, stringFormatRight); + fontSmall, fontBrush, width - 2 * frameThickness, height - frameThickness, stringFormatRightUp); } // frame