Remove context menu from drag shadows (#2262)
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
using Content.Shared.GameObjects.Verbs;
|
||||||
|
using Robust.Shared.GameObjects;
|
||||||
|
using Robust.Shared.Interfaces.GameObjects;
|
||||||
|
|
||||||
|
namespace Content.Shared.GameObjects.Components.Drag
|
||||||
|
{
|
||||||
|
[RegisterComponent]
|
||||||
|
public class DragShadowComponent : Component, IShowContextMenu
|
||||||
|
{
|
||||||
|
public override string Name => "DragShadow";
|
||||||
|
|
||||||
|
public bool ShowContextMenu(IEntity examiner)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,3 +6,4 @@
|
|||||||
- type: Sprite
|
- type: Sprite
|
||||||
layers:
|
layers:
|
||||||
- shader: unshaded
|
- shader: unshaded
|
||||||
|
- type: DragShadow
|
||||||
|
|||||||
Reference in New Issue
Block a user