mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
tgui wires initial
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/var/global/datum/ui_state/wire_state/wire_state = new()
|
||||
|
||||
/datum/ui_state/wire_state/can_use_topic(src_object, mob/user)
|
||||
var/datum/wires/W = src_object
|
||||
if(!istype(W))
|
||||
return UI_CLOSE
|
||||
if(!user.Adjacent(W.holder))
|
||||
return UI_CLOSE
|
||||
return W.CanUse(user) ? UI_INTERACTIVE : UI_CLOSE
|
||||
Reference in New Issue
Block a user