Adds UI dimension vars to machinery (#45959)

* Adds dimension var to machinery.

* cleaner

* newlines

* Cleanup
This commit is contained in:
skoglol
2019-08-22 09:33:10 +02:00
committed by Rob Bailey
parent 91f0b52d4f
commit 8e6276d450
61 changed files with 244 additions and 81 deletions
@@ -5,6 +5,8 @@
icon_state = "implantchair"
density = TRUE
opacity = 0
ui_x = 375
ui_y = 280
var/ready = TRUE
var/replenishing = FALSE
@@ -30,7 +32,7 @@
/obj/machinery/implantchair/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.notcontained_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "implantchair", name, 375, 280, master_ui, state)
ui = new(user, src, ui_key, "implantchair", name, ui_x, ui_y, master_ui, state)
ui.open()