mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
Makes every emote keybindable
This commit is contained in:
committed by
Emmett Gaines
parent
783b6092a8
commit
00cbd41b1c
@@ -50,23 +50,8 @@
|
||||
GLOB.materials_list[D.id] = D
|
||||
sortList(GLOB.materials_list, /proc/cmp_typepaths_asc)
|
||||
|
||||
// Keybindings (classic)
|
||||
for(var/KB in subtypesof(/datum/keybinding))
|
||||
var/datum/keybinding/keybinding = KB
|
||||
if(!initial(keybinding.hotkey_keys))
|
||||
continue
|
||||
var/datum/keybinding/instance = new keybinding
|
||||
GLOB.keybindings_by_name[instance.name] = instance
|
||||
|
||||
// Classic
|
||||
if(LAZYLEN(instance.classic_keys))
|
||||
for(var/bound_key in instance.classic_keys)
|
||||
LAZYADD(GLOB.classic_keybinding_list_by_key[bound_key], list(instance.name))
|
||||
|
||||
// Hotkey
|
||||
if(LAZYLEN(instance.hotkey_keys))
|
||||
for(var/bound_key in instance.hotkey_keys)
|
||||
LAZYADD(GLOB.hotkey_keybinding_list_by_key[bound_key], list(instance.name))
|
||||
// Keybindings
|
||||
init_keybindings()
|
||||
|
||||
GLOB.emote_list = init_emote_list()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user