From 55fcea6d69bfcd947a3e0949a01810bfca26e9b9 Mon Sep 17 00:00:00 2001 From: Kyep Date: Sun, 9 Aug 2020 13:35:52 -0700 Subject: [PATCH] more height adjustments --- code/game/objects/items/devices/radio/electropack.dm | 2 +- code/game/objects/items/devices/radio/radio.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm index 1ced3367397..ec49f7127ba 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -80,7 +80,7 @@ /obj/item/radio/electropack/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_inventory_state) ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui) - ui = new(user, src, ui_key, "Electropack", name, 360, 200, master_ui, state) + ui = new(user, src, ui_key, "Electropack", name, 360, 150, master_ui, state) ui.open() /obj/item/radio/electropack/tgui_data(mob/user) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index bfbcc57a4ea..9e210a85cba 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -119,7 +119,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list( /obj/item/radio/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_inventory_state) ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui) - ui = new(user, src, ui_key, "Radio", name, 360, 300, master_ui, state) + ui = new(user, src, ui_key, "Radio", name, 360, 150 + (length(channels) * 20), master_ui, state) ui.open() /obj/item/radio/tgui_data(mob/user)