v1.0.7.0: Hotbar charge count on slots; fix WndProc restore on unload (left-click after disable)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-01 14:45:12 -05:00
parent 9f95fb90dd
commit d95884fe7d
8 changed files with 89 additions and 28 deletions
@@ -216,6 +216,14 @@ namespace HSUI.Interface.GeneralElements
Vector2 labelPos = new Vector2(pos.X + size.X - labelSize.X - 2, pos.Y + size.Y - labelSize.Y - 2);
DrawHelper.DrawOutlinedText(label, labelPos, 0xFFFFFFFF, 0xFF000000, drawList, 1);
}
if (Config.ShowChargeCount && !slot.IsEmpty && slot.MaxCharges > 1)
{
string chargeText = slot.CurrentCharges.ToString();
Vector2 chargeSize = ImGui.CalcTextSize(chargeText);
Vector2 chargePos = new Vector2(pos.X + 2, pos.Y + 2);
DrawHelper.DrawOutlinedText(chargeText, chargePos, 0xFFFFFFFF, 0xFF000000, drawList, 1);
}
}
}
}
+7 -3
View File
@@ -63,15 +63,19 @@ namespace HSUI.Interface.GeneralElements
[Order(28)]
public bool ShowSlotNumbers = true;
[Checkbox("Show Combo Highlight")]
[Checkbox("Show Charge Count")]
[Order(29)]
public bool ShowChargeCount = true;
[Checkbox("Show Combo Highlight")]
[Order(30)]
public bool ShowComboHighlight = true;
[Checkbox("Show Keypress Flash")]
[Order(30)]
[Order(31)]
public bool ShowKeypressFlash = true;
[NestedConfig("Combo Highlight", 31)]
[NestedConfig("Combo Highlight", 32)]
public ComboHighlightConfig ComboHighlightConfig = new();
[Checkbox("Debug Drag & Drop")]