From b015a3632d0e86403357830b58480416b63a0694 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Tue, 18 Oct 2022 17:02:24 +0200 Subject: [PATCH] Fix choosebox being too small in some cases --- P3D/Dialogues/ChooseBox.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/P3D/Dialogues/ChooseBox.vb b/P3D/Dialogues/ChooseBox.vb index 02a8880dc..1bebb09cb 100644 --- a/P3D/Dialogues/ChooseBox.vb +++ b/P3D/Dialogues/ChooseBox.vb @@ -152,8 +152,8 @@ While Me.TextFont.SpriteFont.MeasureString(Options(i).Replace("[POKE]", "Poké")).X - 16 > MaxWidth MaxWidth += 16 End While - If MaxWidth < 32 Then - MaxWidth = 32 + If MaxWidth < 48 Then + MaxWidth = 48 End If Next Canvas.DrawImageBorder(TextureManager.GetTexture("GUI\Overworld\ChooseBox", New Rectangle(0, 0, 48, 48), ""), 3, New Rectangle(CInt(Position.X), CInt(Position.Y), CInt((MaxWidth * 3) * Size), CInt((48 * Size) * Options.Count)), True)