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