fix: use default height for HUD slot buttons

This commit is contained in:
Zacharie Day 2020-09-15 20:15:08 -04:00 committed by Anna
parent 67a3b5caf3
commit bdbb7acbca
1 changed files with 1 additions and 1 deletions

View File

@ -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();