mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Overhaul vending machine UI from Bubber (#11435)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b74d08609a
commit
e16c9ce7ba
@@ -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