mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
90 lines
3.0 KiB
Plaintext
90 lines
3.0 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, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(!user.prefs.read_preference(/datum/preference/toggle/tgui_input))
|
|
winset(user, null, "command=[VERB_SAY]")
|
|
return TRUE
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(SAY_CHANNEL)];")
|
|
winset(user, SKIN_TGUISAY_BROWSER, "focus=true")
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/communication/radio
|
|
//hotkey_keys = list("Y") // ORIGINAL
|
|
hotkey_keys = list(";") // SKYRAT EDIT CHANGE - CUSTOMIZATION
|
|
name = RADIO_CHANNEL
|
|
full_name = "IC Radio (;)"
|
|
keybind_signal = COMSIG_KB_CLIENT_RADIO_DOWN
|
|
|
|
/datum/keybinding/client/communication/radio/down(client/user, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(!user.prefs.read_preference(/datum/preference/toggle/tgui_input))
|
|
winset(user, null, "command=[VERB_SAY]")
|
|
return TRUE
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(RADIO_CHANNEL)]")
|
|
winset(user, SKIN_TGUISAY_BROWSER, "focus=true")
|
|
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, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(!user.prefs.read_preference(/datum/preference/toggle/tgui_input))
|
|
winset(user, null, "command=[VERB_OOC]")
|
|
return TRUE
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(OOC_CHANNEL)]")
|
|
winset(user, SKIN_TGUISAY_BROWSER, "focus=true")
|
|
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, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(!user.prefs.read_preference(/datum/preference/toggle/tgui_input))
|
|
winset(user, null, "command=[VERB_ME]")
|
|
return TRUE
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(ME_CHANNEL)]")
|
|
winset(user, SKIN_TGUISAY_BROWSER, "focus=true")
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/communication/pray
|
|
hotkey_keys = list("P")
|
|
name = PRAY_CHANNEL
|
|
full_name = "Pray"
|
|
description = "Allows you to directly send a message to your deity (Admins) in an IC manner."
|
|
keybind_signal = COMSIG_KB_CLIENT_PRAY_DOWN
|
|
|
|
/datum/keybinding/client/communication/pray/down(client/user, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(!user.prefs.read_preference(/datum/preference/toggle/tgui_input))
|
|
winset(user, null, "command=[VERB_PRAY]")
|
|
return TRUE
|
|
winset(user, null, "command=[user.tgui_say_create_open_command(PRAY_CHANNEL)];")
|
|
winset(user, "tgui_say.browser", "focus=true")
|
|
return TRUE
|