Make clickmap lookups use the sprite tree (#13275)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -112,7 +112,7 @@ public sealed partial class MeleeWeaponSystem : SharedMeleeWeaponSystem
|
||||
|
||||
if (_stateManager.CurrentState is GameplayStateBase screen)
|
||||
{
|
||||
target = screen.GetEntityUnderPosition(mousePos);
|
||||
target = screen.GetClickedEntity(mousePos);
|
||||
}
|
||||
|
||||
EntityManager.RaisePredictiveEvent(new DisarmAttackEvent(target, coordinates));
|
||||
@@ -191,7 +191,7 @@ public sealed partial class MeleeWeaponSystem : SharedMeleeWeaponSystem
|
||||
// TODO: UI Refactor update I assume
|
||||
if (_stateManager.CurrentState is GameplayStateBase screen)
|
||||
{
|
||||
target = screen.GetEntityUnderPosition(mousePos);
|
||||
target = screen.GetClickedEntity(mousePos);
|
||||
}
|
||||
|
||||
RaisePredictiveEvent(new LightAttackEvent(target, weapon.Owner, coordinates));
|
||||
|
||||
@@ -84,7 +84,7 @@ public sealed class TetherGunSystem : SharedTetherGunSystem
|
||||
|
||||
if (gameState is GameplayState game)
|
||||
{
|
||||
var uid = game.GetEntityUnderPosition(mousePos);
|
||||
var uid = game.GetClickedEntity(mousePos);
|
||||
|
||||
if (uid != null)
|
||||
StartDragging(uid.Value, mousePos);
|
||||
|
||||
Reference in New Issue
Block a user