Combo highlight config, tooltips, nameplates, hotbars fixes
- Combo highlight: configurable color, glow, line style (solid/dashed/dotted), thickness - Tooltips: font selection, scaling slider, improved wrap/cramping handling - Nameplates: custom quest icons with config, position smoothing fix for jitter - Hotbars: hide keybinds on empty slots, combo highlight within icon bounds - HudHelper: restore default nameplates on plugin disable Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -177,10 +177,9 @@ namespace HSUI.Interface.GeneralElements
|
||||
drawList.AddRect(pos, pos + size, 0xFF88CCFF, 0, ImDrawFlags.None, 2);
|
||||
else if (isComboNext)
|
||||
{
|
||||
const uint gold = 0xFFFFD700;
|
||||
for (int g = 5; g >= 1; g--)
|
||||
drawList.AddRect(pos - new Vector2(g, g), pos + size + new Vector2(g, g), (uint)((byte)(70 * (6 - g)) << 24 | (gold & 0xFFFFFF)), 0, ImDrawFlags.None, 2f);
|
||||
drawList.AddRect(pos, pos + size, gold, 0, ImDrawFlags.None, 4f);
|
||||
var ch = Config.ComboHighlightConfig;
|
||||
DrawHelper.DrawComboHighlightRect(drawList, pos, pos + size,
|
||||
ch.Color.Base, ch.Thickness, ch.ShowGlow, ch.LineStyle);
|
||||
}
|
||||
|
||||
if (showCd && slot.CooldownPercent > 0 && _pendingSlotIconIndex != i)
|
||||
@@ -198,7 +197,7 @@ namespace HSUI.Interface.GeneralElements
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.ShowSlotNumbers)
|
||||
if (Config.ShowSlotNumbers && !slot.IsEmpty)
|
||||
{
|
||||
string label = !string.IsNullOrWhiteSpace(slot.KeybindHint)
|
||||
? slot.KeybindHint
|
||||
|
||||
Reference in New Issue
Block a user