TTV TGUI, VR sleeper work.

This commit is contained in:
Artur
2020-06-08 12:28:16 +03:00
parent 4fe9e788ac
commit 33c5dfb28e
6 changed files with 26 additions and 66 deletions
+2
View File
@@ -113,10 +113,12 @@
to_chat(occupant, "<span class='warning'>The virtual world does not support the creation of new virtual avatars, aborting transfer</span>")
else
to_chat(vr_mob, "<span class='notice'>Transfer successful! You are now playing as [vr_mob] in VR!</span>")
M.ui_close(M) //The UI can get stuck open while in VR, which can be annoying
. = TRUE
if("delete_avatar")
if(!occupant || usr == occupant)
if(vr_mob)
SStgui.try_update_ui(occupant, src)
cleanup_vr_mob()
else
to_chat(usr, "<span class='warning'>The VR Sleeper's safeties prevent you from doing that.</span>")