From bdbb7acbca05f7f05c4040be96c55999c17d2612 Mon Sep 17 00:00:00 2001 From: Zacharie Day Date: Tue, 15 Sep 2020 20:15:08 -0400 Subject: [PATCH] fix: use default height for HUD slot buttons --- HudSwap/PluginUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HudSwap/PluginUI.cs b/HudSwap/PluginUI.cs index ba69cf4..13cc5dc 100644 --- a/HudSwap/PluginUI.cs +++ b/HudSwap/PluginUI.cs @@ -136,7 +136,7 @@ namespace HudSwap { ImGui.PopFont(); ImGui.Text("Copy onto slot..."); - Vector2 slotButtonSize = new Vector2(40, ImGui.GetTextLineHeight()); + Vector2 slotButtonSize = new Vector2(40, 0); foreach (HudSlot slot in Enum.GetValues(typeof(HudSlot))) { // Surround the button with parentheses if this is the current slot string slotText = slot == this.plugin.Hud.GetActiveHudSlot() ? $"({(int)slot + 1})" : ((int)slot + 1).ToString();