Browse Source

Fix stash text height

pull/8329/head
Eric Robinson 3 months ago committed by Gleb Mazovetskiy
parent
commit
c26801c8e5
  1. 5
      Source/qol/stash.cpp

5
Source/qol/stash.cpp

@ -402,10 +402,11 @@ void DrawStash(const Surface &out)
const Point position = GetPanelPosition(UiPanels::Stash);
const UiFlags style = UiFlags::VerticalCenter | UiFlags::ColorWhite;
const int textboxHeight = 13;
DrawString(out, StrCat(Stash.GetPage() + 1), { position + Displacement { 132, 0 }, { 57, 11 } },
DrawString(out, StrCat(Stash.GetPage() + 1), { position + Displacement { 132, 0 }, { 57, textboxHeight } },
{ .flags = UiFlags::AlignCenter | style });
DrawString(out, FormatInteger(Stash.gold), { position + Displacement { 122, 19 }, { 107, 13 } },
DrawString(out, FormatInteger(Stash.gold), { position + Displacement { 122, 19 }, { 107, textboxHeight } },
{ .flags = UiFlags::AlignRight | style });
}

Loading…
Cancel
Save