v1.0.2.6: Fix cooldown overlay direction (grey when used, lights up as ready)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-01-31 11:46:44 -05:00
parent 95c4dfce38
commit 98369c5fc4
5 changed files with 14 additions and 10 deletions
+2 -1
View File
@@ -264,7 +264,8 @@ namespace HSUI.Helpers
public static void DrawIconCooldown(Vector2 position, Vector2 size, float elapsed, float total, ImDrawListPtr drawList)
{
float completion = elapsed / total;
// completion = how much of icon to grey out (remaining cooldown). Starts full, shrinks as it cools down.
float completion = total > 0 ? 1f - (elapsed / total) : 0f;
int segments = (int)Math.Ceiling(completion * 4);
Vector2 center = position + size / 2;