mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 23:59:40 +01:00
[MIRROR] Fix multiple pref issues (#11373)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
co-authored by
Kashargul
C.L.
parent
b7c79d4a6a
commit
ae778b99ee
@@ -30,9 +30,9 @@
|
||||
usr.update_ui_style(UI_style_new, UI_style_alpha_new, UI_style_color_new)
|
||||
|
||||
if(tgui_alert(src, "Like it? Save changes?","Save?",list("Yes", "No")) == "Yes")
|
||||
usr.write_preference_directly(/datum/preference/choiced/ui_style, UI_style_new)
|
||||
usr.write_preference_directly(/datum/preference/numeric/ui_style_alpha, UI_style_alpha_new)
|
||||
usr.write_preference_directly(/datum/preference/color/ui_style_color, UI_style_color_new)
|
||||
usr.write_preference_directly(/datum/preference/choiced/ui_style, UI_style_new, WRITE_PREF_MANUAL)
|
||||
usr.write_preference_directly(/datum/preference/numeric/ui_style_alpha, UI_style_alpha_new, WRITE_PREF_MANUAL)
|
||||
usr.write_preference_directly(/datum/preference/color/ui_style_color, UI_style_color_new, WRITE_PREF_MANUAL)
|
||||
SScharacter_setup.queue_preferences_save(prefs)
|
||||
to_chat(src, "UI was saved")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user