Adds UI dimension vars to machinery (#45959)

* Adds dimension var to machinery.

* cleaner

* newlines

* Cleanup
This commit is contained in:
skoglol
2019-08-22 00:33:10 -07:00
committed by Rob Bailey
parent 91f0b52d4f
commit 8e6276d450
61 changed files with 244 additions and 81 deletions
+3 -1
View File
@@ -10,6 +10,8 @@
idle_power_usage = 20
active_power_usage = 100
circuit = /obj/item/circuitboard/computer/powermonitor
ui_x = 1200
ui_y = 1000
var/obj/structure/cable/attached_wire
var/obj/machinery/power/apc/local_apc
@@ -85,7 +87,7 @@
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "power_monitor", name, 1200, 1000, master_ui, state)
ui = new(user, src, ui_key, "power_monitor", name, ui_x, ui_y, master_ui, state)
ui.open()
/obj/machinery/computer/monitor/ui_data()