keybind signal support, ported from TGMC (#52219)

* 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>
This commit is contained in:
Couls
2020-07-22 16:51:52 -04:00
committed by SkyratBot
parent 41c6428ca6
commit dc5840dc4e
15 changed files with 298 additions and 6 deletions
+1
View File
@@ -15,6 +15,7 @@
#include "card_mismatch.dm"
#include "chain_pull_through_space.dm"
#include "component_tests.dm"
#include "keybinding_init.dm"
#include "outfit_sanity.dm"
#include "plantgrowth_tests.dm"
#include "reagent_id_typos.dm"
@@ -0,0 +1,6 @@
/datum/unit_test/keybinding_init/Run()
for(var/i in subtypesof(/datum/keybinding))
var/datum/keybinding/KB = i
if(initial(KB.keybind_signal) || !initial(KB.name))
continue
Fail("[KB.name] does not have a keybind signal defined.")