mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
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:
co-authored by
Kashargul
parent
20515b1db4
commit
43b26fbc27
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user