diff --git a/Content.Client/Shuttles/UI/MapScreen.xaml.cs b/Content.Client/Shuttles/UI/MapScreen.xaml.cs index 10800b8c5f7..72a562432a8 100644 --- a/Content.Client/Shuttles/UI/MapScreen.xaml.cs +++ b/Content.Client/Shuttles/UI/MapScreen.xaml.cs @@ -1,6 +1,7 @@ using System.Linq; using System.Numerics; using Content.Client.Shuttles.Systems; +using Content.Shared._NF.Shuttles.Components; using Content.Shared.Shuttles.BUIStates; using Content.Shared.Shuttles.Components; using Content.Shared.Shuttles.Systems; @@ -114,6 +115,16 @@ public void UpdateState(ShuttleMapInterfaceState state) MapRadar.InFtl = true; MapFTLState.Text = Loc.GetString($"shuttle-console-ftl-state-{_state.ToString()}"); + //frontier - we only allow pre-approved vessels to FTL + if (!_entManager.HasComponent(_shuttleEntity)) + { + MapFTLButton.Visible = false; + } + else + { + MapFTLButton.Visible = true; + } + switch (_state) { case FTLState.Available: diff --git a/Content.Shared/_NF/Shuttles/Components/ShuttleFTLComponent.cs b/Content.Shared/_NF/Shuttles/Components/ShuttleFTLComponent.cs new file mode 100644 index 00000000000..a81cd10644f --- /dev/null +++ b/Content.Shared/_NF/Shuttles/Components/ShuttleFTLComponent.cs @@ -0,0 +1,9 @@ +namespace Content.Shared._NF.Shuttles.Components; + +/// +/// This is a stub component for allowing/denying FTL on a shuttle. +/// +[RegisterComponent] +public sealed partial class ShuttleFTLComponent : Component +{ +}