From 71ea871f579453182c039338f15a74d20d10a07e Mon Sep 17 00:00:00 2001 From: Checkraze <71046427+Cheackraze@users.noreply.github.com> Date: Sun, 21 Apr 2024 17:30:31 -0400 Subject: [PATCH] disable local FTL --- Content.Client/Shuttles/UI/MapScreen.xaml.cs | 11 +++++++++++ .../_NF/Shuttles/Components/ShuttleFTLComponent.cs | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 Content.Shared/_NF/Shuttles/Components/ShuttleFTLComponent.cs 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 +{ +}