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 Clemens
parent 65e649b8a8
commit 2eb0c3cc77
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

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