Files
Yogstation/yogstation/code/modules/client/preferences.dm
2018-10-01 19:55:06 -05:00

18 lines
537 B
Plaintext

/datum/preferences
var/donor_hat = 0
var/donor_item = 0
var/donor_pda = 1
var/quiet_round = FALSE
var/purrbation = null
var/afreeze = FALSE
var/datum/keybindings/bindings = new
/datum/preferences/proc/update_keybindings(mob/user, action, dir)
var/keybind = input(user, "Select [action] button", "Keybinding Preference") as null|anything in GLOB.keybinding_validkeys
if(keybind)
bindings.key_setbinding(keybind, action, text2num(dir))
/datum/preferences/proc/reset_keybindings()
bindings.from_list(GLOB.keybinding_default)