Improve sprite fading behaviour (#35863)

* Click through faded sprites

* Count the mouse position for which sprites to fade
This commit is contained in:
pathetic meowmeow
2025-04-03 02:58:05 -04:00
committed by GitHub
parent ce53629f1d
commit e9b89a1c6b
4 changed files with 105 additions and 34 deletions

View File

@@ -80,7 +80,7 @@ namespace Content.IntegrationTests.Tests
var pos = clientEntManager.System<SharedTransformSystem>().GetWorldPosition(clientEnt);
hit = clientEntManager.System<ClickableSystem>().CheckClick((clientEnt, null, sprite, null), new Vector2(clickPosX, clickPosY) + pos, eye, out _, out _, out _);
hit = clientEntManager.System<ClickableSystem>().CheckClick((clientEnt, null, sprite, null), new Vector2(clickPosX, clickPosY) + pos, eye, false, out _, out _, out _);
});
await server.WaitPost(() =>