diff --git a/tgui/packages/tgui/interfaces/RIGSuit/index.tsx b/tgui/packages/tgui/interfaces/RIGSuit/index.tsx index 9a6da962445..2f469ae91b9 100644 --- a/tgui/packages/tgui/interfaces/RIGSuit/index.tsx +++ b/tgui/packages/tgui/interfaces/RIGSuit/index.tsx @@ -1,6 +1,7 @@ import { useBackend, useSharedState } from 'tgui/backend'; import { Window } from 'tgui/layouts'; -import { Box } from 'tgui-core/components'; +import { Box, Stack } from 'tgui-core/components'; +import { UI_INTERACTIVE } from 'tgui-core/constants'; import { RIGSuitHardware } from './RIGSuitHardware'; import { RIGSuitLoader } from './RIGSuitLoader'; @@ -9,10 +10,24 @@ import { RIGSuitStatus } from './RIGSuitStatus'; import type { Data } from './types'; export const RIGSuit = (props) => { - const { data } = useBackend(); + const { config, data } = useBackend(); const { interfacelock, malf, aicontrol, ai } = data; + if (config.status < UI_INTERACTIVE) { + return ( + + + + + --RIG Access Denied-- + + + + + ); + } + const [showLoading, setShowLoading] = useSharedState('rigsuit-loading', true); if (showLoading) {