Overhaul vending machine UI from Bubber (#18170)

* Overhaul vending machine UI from Bubber

* port pref too

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
ShadowLarkens
2025-08-16 04:18:26 +02:00
committed by GitHub
co-authored by Kashargul
parent 20515b1db4
commit 43b26fbc27
6 changed files with 237 additions and 78 deletions
@@ -51,6 +51,24 @@
default_value = FALSE
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/choiced/tgui_layout
savefile_key = "tgui_layout"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/choiced/tgui_layout/init_possible_values()
return list(
TGUI_LAYOUT_GRID,
TGUI_LAYOUT_LIST,
)
/datum/preference/choiced/tgui_layout/create_default_value()
return TGUI_LAYOUT_GRID
/datum/preference/choiced/tgui_layout/apply_to_client(client/client, value)
for (var/datum/tgui/tgui as anything in client.mob?.tgui_open_uis)
// Force it to reload either way
tgui.update_tgui_static_data(client.mob)
/datum/preference/toggle/tgui_say
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "TGUI_SAY"