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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user