mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Vending machines now use their name as a title for their UI [MDB IGNORE] (#8514)
* tgui: Vending machine titles (#61780) * Vending machines now use their name as a title for their UI Co-authored-by: Arkatos1 <43862960+Arkatos1@users.noreply.github.com>
This commit is contained in:
@@ -735,7 +735,7 @@ GLOBAL_LIST_EMPTY(vending_products)
|
||||
/obj/machinery/vending/ui_interact(mob/user, datum/tgui/ui)
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
if(!ui)
|
||||
ui = new(user, src, "Vending")
|
||||
ui = new(user, src, "Vending", name)
|
||||
ui.open()
|
||||
|
||||
/obj/machinery/vending/ui_static_data(mob/user)
|
||||
|
||||
@@ -200,7 +200,6 @@ export const Vending = (props, context) => {
|
||||
inventory = inventory.filter(item => !!item);
|
||||
return (
|
||||
<Window
|
||||
title="Vending Machine"
|
||||
width={450}
|
||||
height={600}>
|
||||
<Window.Content scrollable>
|
||||
|
||||
Reference in New Issue
Block a user