mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Merge pull request #14373 from SabreML/Vending-size
Fixes Vending Machine window size
This commit is contained in:
@@ -447,7 +447,7 @@
|
||||
/obj/machinery/vending/tgui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = TRUE, datum/tgui/master_ui = null, datum/tgui_state/state = GLOB.tgui_default_state)
|
||||
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
|
||||
if(!ui)
|
||||
var/estimated_height = 100 + (length(product_records) * 34)
|
||||
var/estimated_height = 100 + min(length(product_records) * 34, 500)
|
||||
if(length(prices) > 0)
|
||||
estimated_height += 100 // to account for the "current user" interface
|
||||
ui = new(user, src, ui_key, "Vending", name, 470, estimated_height, master_ui, state)
|
||||
|
||||
Reference in New Issue
Block a user