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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user