mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
Commit 1 (For debug)
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
ooccolor = sanitize_hexcolor(ooccolor, initial(ooccolor))
|
||||
UI_style = sanitize_inlist(UI_style, list("White", "Midnight"), initial(UI_style))
|
||||
default_slot = sanitize_integer(default_slot, 1, max_save_slots, initial(default_slot))
|
||||
toggles = sanitize_integer(toggles, 0, 65535, initial(toggles))
|
||||
toggles = sanitize_integer(toggles, 0, 262143, initial(toggles))
|
||||
sound = sanitize_integer(sound, 0, 65535, initial(sound))
|
||||
UI_style_color = sanitize_hexcolor(UI_style_color, initial(UI_style_color))
|
||||
UI_style_alpha = sanitize_integer(UI_style_alpha, 0, 255, initial(UI_style_alpha))
|
||||
|
||||
@@ -195,4 +195,16 @@
|
||||
set category = "Preferences"
|
||||
set desc = "Allows you to access the Setup Character screen. Changes to your character won't take effect until next round, but other changes will."
|
||||
prefs.current_tab = 1
|
||||
prefs.ShowChoices(usr)
|
||||
prefs.ShowChoices(usr)
|
||||
|
||||
/client/verb/toggle_darkmode()
|
||||
set name = "Toggle Darkmode"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggles UI style between dark and light"
|
||||
prefs.toggles ^= UI_DARKMODE
|
||||
prefs.save_preferences(src)
|
||||
if(prefs.toggles & UI_DARKMODE)
|
||||
activate_darkmode()
|
||||
else
|
||||
deactivate_darkmode()
|
||||
feedback_add_details("admin_verb","TDarkmode") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
Reference in New Issue
Block a user