From 4fe9e788ac4af88f4ed460eeda9207651f3d8531 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 1 Jun 2020 20:42:58 +0300 Subject: [PATCH] Makes it actually nicely work --- tgui/packages/tgui/interfaces/VrSleeper.js | 83 +++++++++++++--------- 1 file changed, 48 insertions(+), 35 deletions(-) diff --git a/tgui/packages/tgui/interfaces/VrSleeper.js b/tgui/packages/tgui/interfaces/VrSleeper.js index 61cb280fae..82e00ceedb 100644 --- a/tgui/packages/tgui/interfaces/VrSleeper.js +++ b/tgui/packages/tgui/interfaces/VrSleeper.js @@ -1,5 +1,5 @@ import { useBackend } from '../backend'; -import { Button, ProgressBar, Section } from '../components'; +import { Button, ProgressBar, Section, Box } from '../components'; import { Window } from '../layouts'; export const VrSleeper = (props, context) => { @@ -7,45 +7,58 @@ export const VrSleeper = (props, context) => { return ( - {!!data.emagged === 1 && ( - Safety restraints disabled. - )} - {!!data.vr_avatar && ( - + {!!data.emagged && ( +
+ + Safety restraints disabled. + +
)} + {...!!data.vr_avatar && ( +
+ +
+ ) && ( +
+ + No Avatar detected + +
+ ) + }
- buttons={( -
+ ) + || ("You need to be inside the VR sleeper to connect to VR")} + + {!!data.vr_avatar && ( +