v1.0.2.3: Keypress flash indicator for hotbar slots
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -195,6 +195,16 @@ namespace HSUI.Interface.GeneralElements
|
||||
DrawHelper.DrawOutlinedText(cdText, textPos, 0xFFFFFFFF, 0xFF000000, drawList, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.ShowKeypressFlash)
|
||||
{
|
||||
float flashAlpha = InputsHelper.GetKeypressFlashAlpha(Config.HotbarIndex, i, 0.2);
|
||||
if (flashAlpha > 0.001f)
|
||||
{
|
||||
byte a = (byte)(flashAlpha * 0.5f * 255);
|
||||
drawList.AddRectFilled(pos, pos + size, (uint)(a << 24 | 0xFFFFFF));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.ShowSlotNumbers && !slot.IsEmpty)
|
||||
|
||||
@@ -67,11 +67,15 @@ namespace HSUI.Interface.GeneralElements
|
||||
[Order(29)]
|
||||
public bool ShowComboHighlight = true;
|
||||
|
||||
[Checkbox("Show Keypress Flash")]
|
||||
[Order(30)]
|
||||
public bool ShowKeypressFlash = true;
|
||||
|
||||
[NestedConfig("Combo Highlight", 31)]
|
||||
public ComboHighlightConfig ComboHighlightConfig = new();
|
||||
|
||||
[Checkbox("Debug Drag & Drop")]
|
||||
[Order(30)]
|
||||
[Order(32)]
|
||||
public bool DebugDragDrop = false;
|
||||
|
||||
[NestedConfig("Visibility", 70)]
|
||||
|
||||
Reference in New Issue
Block a user