[MIRROR] Adds the bare minimum admin components and allows admins to define list literals. (#7320)

* Adds the bare minimum admin components and allows admins to define list literals.

* Update decaySS.dm

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-08-03 21:11:09 +01:00
committed by GitHub
co-authored by Watermelon914 Gandalf
parent 9098086959
commit e2c9240251
28 changed files with 587 additions and 32 deletions
+7
View File
@@ -30,8 +30,12 @@
var/datum/port/output/alt
var/datum/port/output/right
/// The entity output
var/datum/port/output/entity
/obj/item/circuit_component/controller/Initialize()
. = ..()
entity = add_output_port("User", PORT_TYPE_ATOM)
signal = add_output_port("Signal", PORT_TYPE_SIGNAL)
alt = add_output_port("Alternate Signal", PORT_TYPE_SIGNAL)
right = add_output_port("Extra Signal", PORT_TYPE_SIGNAL)
@@ -57,6 +61,7 @@
return
source.balloon_alert(user, "clicked primary button")
playsound(source, get_sfx("terminal_type"), 25, FALSE)
entity.set_output(user)
signal.set_output(COMPONENT_SIGNAL)
/**
@@ -68,6 +73,7 @@
return
source.balloon_alert(user, "clicked alternate button")
playsound(source, get_sfx("terminal_type"), 25, FALSE)
entity.set_output(user)
alt.set_output(COMPONENT_SIGNAL)
/obj/item/circuit_component/controller/proc/send_right_signal(atom/source, mob/user)
@@ -76,4 +82,5 @@
return
source.balloon_alert(user, "clicked extra button")
playsound(source, get_sfx("terminal_type"), 25, FALSE)
entity.set_output(user)
right.set_output(COMPONENT_SIGNAL)