Add HideContextMenu component (#2555)
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Interfaces.GameObjects;
|
using Robust.Shared.Interfaces.GameObjects;
|
||||||
|
|
||||||
namespace Content.Shared.GameObjects.Components.Drag
|
namespace Content.Shared.GameObjects.Components.Context
|
||||||
{
|
{
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
public class DragShadowComponent : Component, IShowContextMenu
|
public class HideContextMenuComponent : Component, IShowContextMenu
|
||||||
{
|
{
|
||||||
public override string Name => "DragShadow";
|
public override string Name => "HideContextMenu";
|
||||||
|
|
||||||
public bool ShowContextMenu(IEntity examiner)
|
public bool ShowContextMenu(IEntity examiner)
|
||||||
{
|
{
|
||||||
@@ -1,16 +1,9 @@
|
|||||||
using Content.Shared.GameObjects.Verbs;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.GameObjects;
|
|
||||||
using Robust.Shared.Interfaces.GameObjects;
|
|
||||||
|
|
||||||
namespace Content.Shared.GameObjects.Components.Pointing
|
namespace Content.Shared.GameObjects.Components.Pointing
|
||||||
{
|
{
|
||||||
public class SharedPointingArrowComponent : Component, IShowContextMenu
|
public class SharedPointingArrowComponent : Component
|
||||||
{
|
{
|
||||||
public sealed override string Name => "PointingArrow";
|
public sealed override string Name => "PointingArrow";
|
||||||
|
|
||||||
public bool ShowContextMenu(IEntity examiner)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
- type: Sprite
|
- type: Sprite
|
||||||
layers:
|
layers:
|
||||||
- shader: unshaded
|
- shader: unshaded
|
||||||
- type: DragShadow
|
- type: HideContextMenu
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
netsync: false
|
netsync: false
|
||||||
sprite: Interface/Misc/pointing.rsi
|
sprite: Interface/Misc/pointing.rsi
|
||||||
state: pointing
|
state: pointing
|
||||||
|
|
||||||
- type: PointingArrow
|
- type: PointingArrow
|
||||||
duration: 4
|
duration: 4
|
||||||
step: 0.5
|
step: 0.5
|
||||||
@@ -14,3 +13,4 @@
|
|||||||
- type: Appearance
|
- type: Appearance
|
||||||
visuals:
|
visuals:
|
||||||
- type: RoguePointingArrowVisualizer
|
- type: RoguePointingArrowVisualizer
|
||||||
|
- type: HideContextMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user