tgui: Interface improvements (#53902)

* Tgui improvements

* Shuttle Console tweaks

* Status color keys

* Rebuild tgui

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
This commit is contained in:
Arkatos1
2020-09-26 05:10:19 +02:00
committed by GitHub
parent 5aed1f6dce
commit 6613107bb6
15 changed files with 134 additions and 149 deletions
+13 -16
View File
@@ -13,19 +13,16 @@
circuit = /obj/item/circuitboard/computer/labor_shuttle/one_way
req_access = list( )
/obj/machinery/computer/shuttle/labor/one_way/ui_act(action, params)
if(!allowed(usr))
to_chat(usr, "<span class='danger'>Access denied.</span>")
return
switch(action)
if("move")
var/obj/docking_port/mobile/M = SSshuttle.getShuttle("laborcamp")
if(!M)
to_chat(usr, "<span class='warning'>Cannot locate shuttle!</span>")
return
var/obj/docking_port/stationary/S = M.get_docked()
if(S?.name == "laborcamp_away")
to_chat(usr, "<span class='warning'>Shuttle is already at the outpost!</span>")
return
return ..()
/obj/machinery/computer/shuttle/labor/one_way/launch_check(mob/user)
. = ..()
if(!.)
return FALSE
var/obj/docking_port/mobile/M = SSshuttle.getShuttle("laborcamp")
if(!M)
to_chat(user, "<span class='warning'>Cannot locate shuttle!</span>")
return FALSE
var/obj/docking_port/stationary/S = M.get_docked()
if(S?.name == "laborcamp_away")
to_chat(user, "<span class='warning'>Shuttle is already at the outpost!</span>")
return FALSE
return TRUE