mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
Fixes vrsleeper and shit
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user