Fixes vrsleeper and shit

This commit is contained in:
Artur
2020-06-11 17:40:33 +03:00
parent ec3c15ef0d
commit 607ddf011e
3 changed files with 32 additions and 33 deletions

View File

@@ -1793,7 +1793,6 @@
#include "code\modules\clothing\gloves\tacklers.dm"
#include "code\modules\clothing\head\_head.dm"
#include "code\modules\clothing\head\beanie.dm"
#include "code\modules\clothing\head\cit_hats.dm"
#include "code\modules\clothing\head\collectable.dm"
#include "code\modules\clothing\head\hardhat.dm"
#include "code\modules\clothing\head\helmet.dm"
@@ -3410,7 +3409,6 @@
#include "modular_citadel\code\modules\mob\living\carbon\reindex_screams.dm"
#include "modular_citadel\code\modules\mob\living\carbon\human\human.dm"
#include "modular_citadel\code\modules\mob\living\carbon\human\human_defense.dm"
#include "modular_citadel\code\modules\projectiles\gun.dm"
#include "modular_citadel\code\modules\projectiles\ammunition\caseless.dm"
#include "modular_citadel\code\modules\projectiles\ammunition\ballistic\smg\smg.dm"
#include "modular_citadel\code\modules\projectiles\boxes_magazines\ammo_boxes.dm"

View File

@@ -14,27 +14,25 @@ export const VrSleeper = (props, context) => {
</Box>
</Section>
)}
{...!!data.vr_avatar && (
<Section title={"Virtual Avatar"}>
<ProgressBar
title={"Avatar Status: "}
value={data.vr_avatar.maxhealth / 100}
ranges={{
good: [90, Infinity],
average: [70, 89],
bad: [-Infinity, 69],
}} />
</Section>
) && (
<Section>
<Box>
No Avatar detected
</Box>
</Section>
)
}
<Section
title="VR Commands">
{!!data.vr_avatar && (
<Section title={"Virtual Avatar"}>
<ProgressBar
title={"Avatar Status: "}
value={data.vr_avatar.maxhealth / 100}
ranges={{
good: [90, Infinity],
average: [70, 89],
bad: [-Infinity, 69],
}} />
</Section>
) && (
<Section>
<Box>
No Avatar detected
</Box>
</Section>
)}
<Section title="VR Commands">
<Button
content={data.toggle_open
? 'Close VR Sleeper'
@@ -55,13 +53,16 @@ export const VrSleeper = (props, context) => {
)
|| ("You need to be inside the VR sleeper to connect to VR")}
</Section>
{!!data.vr_avatar && (
<Button
content={"Delete VR avatar"}
icon={'recycle'}
onClick={() => act('delete_avatar')} />
)}
</Section>
{!!data.vr_avatar && (
<Button
content={"Delete VR avatar"}
icon={'recycle'}
onClick={() => {
act('delete_avatar');
act('tgui:update');
}} />
)}
</Section>
</Window.Content>
</Window>
);

File diff suppressed because one or more lines are too long