mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 04:21:42 +00:00
## About The Pull Request This PR solves the problem with entering a server with a different (from English) layout and not being able to use chat binds. so far, alas, you need to re-login with the English layout. https://i.imgur.com/WjixRVv.mp4 ## Why It's Good For The Game Resolves an issue for servers based on this build. ## Changelog 🆑 Vishenka0704 fix: fixed different from english keyboard layout to use tgui chat /🆑
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
/datum/keybinding/client/communication
|
|
category = CATEGORY_COMMUNICATION
|
|
|
|
/datum/keybinding/client/communication/say
|
|
hotkey_keys = list("T")
|
|
name = SAY_CHANNEL
|
|
full_name = "IC Say"
|
|
keybind_signal = COMSIG_KB_CLIENT_SAY_DOWN
|
|
|
|
/datum/keybinding/client/communication/say/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(SAY_CHANNEL)]")
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/communication/radio
|
|
hotkey_keys = list("Y")
|
|
name = RADIO_CHANNEL
|
|
full_name = "IC Radio (;)"
|
|
keybind_signal = COMSIG_KB_CLIENT_RADIO_DOWN
|
|
|
|
/datum/keybinding/client/communication/radio/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(RADIO_CHANNEL)]")
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/communication/ooc
|
|
hotkey_keys = list("O")
|
|
name = OOC_CHANNEL
|
|
full_name = "Out Of Character Say (OOC)"
|
|
keybind_signal = COMSIG_KB_CLIENT_OOC_DOWN
|
|
|
|
/datum/keybinding/client/communication/ooc/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(OOC_CHANNEL)]")
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/communication/me
|
|
hotkey_keys = list("M")
|
|
name = ME_CHANNEL
|
|
full_name = "Custom Emote (/Me)"
|
|
keybind_signal = COMSIG_KB_CLIENT_ME_DOWN
|
|
|
|
/datum/keybinding/client/communication/me/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(ME_CHANNEL)]")
|
|
return TRUE
|