mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Improve tgui say experience with extra control prefs (#9230)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -35,3 +35,27 @@
|
||||
|
||||
/datum/preference/toggle/tgui_say_light/apply_to_client(client/client, value)
|
||||
client.tgui_say?.load()
|
||||
|
||||
/datum/preference/toggle/tgui_say_emotes
|
||||
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
||||
savefile_key = "tgui_say_emotes"
|
||||
default_value = TRUE
|
||||
savefile_identifier = PREFERENCE_PLAYER
|
||||
|
||||
/datum/preference/toggle/tgui_say_emotes/apply_to_client(client/client, value)
|
||||
client.tgui_say?.load()
|
||||
|
||||
/datum/preference/numeric/tgui_say_height
|
||||
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
||||
savefile_key = "tgui_say_height"
|
||||
savefile_identifier = PREFERENCE_PLAYER
|
||||
|
||||
minimum = 1
|
||||
maximum = 5
|
||||
step = 1
|
||||
|
||||
/datum/preference/numeric/tgui_say_height/create_default_value()
|
||||
return 1
|
||||
|
||||
/datum/preference/numeric/tgui_say_height/apply_to_client(client/client, value)
|
||||
client.tgui_say?.load()
|
||||
|
||||
Reference in New Issue
Block a user