mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 01:22:03 +00:00
* keybind signal support, ported from TGMC * Thank you linter * remove unused and extra defines * move signal defines up and fix emote keybind runtimes * Apply suggestions * Update keybinding.dm * Missed this one in the upstream merge * Ignore keybindings without names * back to the OG * Update living.dm * Update living.dm * got it * trailing newline * Update code/datums/keybinding/living.dm Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: Rohesie <rohesie@gmail.com>
19 lines
498 B
Plaintext
19 lines
498 B
Plaintext
/datum/keybinding/emote
|
|
category = CATEGORY_EMOTE
|
|
weight = WEIGHT_EMOTE
|
|
keybind_signal = COMSIG_KB_EMOTE
|
|
var/emote_key
|
|
|
|
/datum/keybinding/emote/proc/link_to_emote(datum/emote/faketype)
|
|
hotkey_keys = list("Unbound")
|
|
emote_key = initial(faketype.key)
|
|
name = initial(faketype.key)
|
|
full_name = capitalize(initial(faketype.key))
|
|
description = "Do the emote '*[emote_key]'"
|
|
|
|
/datum/keybinding/emote/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
return user.mob.emote(emote_key, intentional=TRUE)
|