Skip to content

Commit

Permalink
fix infographic vertical text alignment of wild level
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Jul 18, 2022
1 parent 76f3c00 commit 0436289
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ARKBreedingStats/library/CreatureInfoGraphic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0436289

Please sign in to comment.