v1.0.2.3: Keypress flash indicator for hotbar slots

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-01-31 02:59:15 -05:00
parent 1011d126d8
commit 4365f78ef7
7 changed files with 52 additions and 10 deletions
@@ -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)