More vr sleeper work and map fix

This commit is contained in:
Artur
2020-06-09 11:06:16 +03:00
parent 19949b842b
commit 094a1b6f62
6 changed files with 32 additions and 14 deletions

View File

@@ -34,22 +34,25 @@ export const VrSleeper = (props, context) => {
)
}
<Section
title="VR Commands">
<Button
title="VR Commands">
<Button
content={data.toggle_open
? 'Open VR Sleeper'
: 'Close VR Sleeper'}
? 'Close VR Sleeper'
: 'Open VR Sleeper'}
icon={data.toggle_open ? 'unlock' : 'lock'}
disabled={data.stored < data.max}
onClick={() => act('toggle_open')} />
<Section>
<Section>
{!!data.isoccupant && (
<Button
color={'blue'}
content={'Connect to VR'}
onClick={() => act('vr_connect')}
icon={'unlock'} />
)
<Button.Confirm
color={'blue'}
content={'Connect to VR'}
onClick={() => {
act('vr_connect');
act('tgui:close');
}}
icon={'unlock'} />
)
|| ("You need to be inside the VR sleeper to connect to VR")}
</Section>
{!!data.vr_avatar && (

File diff suppressed because one or more lines are too long