mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
18 lines
537 B
Plaintext
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) |