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
@@ -27,6 +27,9 @@
var/dev_printer = 0 // 0: None, 1: Standard
var/dev_card = 0 // 0: None, 1: Standard
ui_x = 500
ui_y = 400
// Removes all traces of old order and allows you to begin configuration from scratch.
/obj/machinery/lapvend/proc/reset_order()
state = 0
@@ -229,7 +232,7 @@
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if (!ui)
ui = new(user, src, ui_key, "computer_fabricator", "Personal Computer Vendor", 500, 400, state = state)
ui = new(user, src, ui_key, "computer_fabricator", "Personal Computer Vendor", ui_x, ui_y, state = state)
ui.open()
ui.set_autoupdate(state = 1)
@@ -288,4 +291,4 @@
say("Enjoy your new product!")
state = 3
return 1
return 0
return 0