diff --git a/modular_bandastation/keybinding/_keybinding.dme b/modular_bandastation/keybinding/_keybinding.dme index 44dbc23d3008d..26e2bbd703e98 100644 --- a/modular_bandastation/keybinding/_keybinding.dme +++ b/modular_bandastation/keybinding/_keybinding.dme @@ -5,7 +5,6 @@ #include "code/carbon.dm" #include "code/client.dm" #include "code/communication.dm" -#include "code/emote.dm" #include "code/human.dm" #include "code/living.dm" #include "code/mob.dm" diff --git a/modular_bandastation/keybinding/code/emote.dm b/modular_bandastation/keybinding/code/emote.dm deleted file mode 100644 index eb02d081238ec..0000000000000 --- a/modular_bandastation/keybinding/code/emote.dm +++ /dev/null @@ -1,4 +0,0 @@ -/datum/keybinding/emote/link_to_emote(datum/emote/faketype) - . = ..() - if(initial(faketype.name)) - full_name = capitalize(initial(faketype.name)) diff --git a/modular_bandastation/translations/_translations.dm b/modular_bandastation/translations/_translations.dm index 3859ce6722ad0..d543840324237 100644 --- a/modular_bandastation/translations/_translations.dm +++ b/modular_bandastation/translations/_translations.dm @@ -46,3 +46,8 @@ GLOBAL_LIST_EMPTY(ru_emote_messages) var/list/emote_list = GLOB.emote_list[emote_key] for(var/datum/emote/emote in emote_list) emote.update_to_ru() + for(var/emote_kb_key as anything in GLOB.keybindings_by_name) + var/datum/keybinding/emote/emote_kb = GLOB.keybindings_by_name[emote_kb_key] + if(!istype(emote_kb)) + continue + emote_kb.update_to_ru() diff --git a/modular_bandastation/translations/code/translate_emotes.dm b/modular_bandastation/translations/code/translate_emotes.dm index fa2628fa8b42c..ded32c582651c 100644 --- a/modular_bandastation/translations/code/translate_emotes.dm +++ b/modular_bandastation/translations/code/translate_emotes.dm @@ -15,3 +15,13 @@ message_monkey = ru_emote_message(message_monkey) message_animal_or_basic = ru_emote_message(message_animal_or_basic) message_param = ru_emote_message(message_param) + +/datum/keybinding/emote + var/datum/emote/faketype + +/datum/keybinding/emote/link_to_emote(datum/emote/faketype) + . = ..() + src.faketype = faketype + +/datum/keybinding/emote/proc/update_to_ru() + full_name = capitalize(ru_emote_name(faketype::name || faketype::key))