From d42c0e6160e20e527c4f90d0cd1296a1e8ef4724 Mon Sep 17 00:00:00 2001 From: Skies-Of-Blue <86762641+Skies-Of-Blue@users.noreply.github.com> Date: Sun, 14 Jul 2024 01:29:59 -0700 Subject: [PATCH] Ports 'Command bar typing indicators (client side html version)' (#3080) ## About The Pull Request Directly ports https://github.com/tgstation/tgstation/pull/83081, allowing typing indicators to trigger off of the command bar. ## Why It's Good For The Game Typing indicators are there for a reason! It's helpful to know if another player is cooking a message for thirty seconds or just staring at you. However, a good chunk of our players exclusively use the command bar to send messages, leaving us in the dark! This helps level the playing field. ## Changelog :cl: add: typing indicators now trigger off of the command bar /:cl: --- check_regex.yaml | 2 +- code/modules/client/client_procs.dm | 5 ++++ code/modules/client/verbs/typing.dm | 28 ++++++++++++++++++ html/typing_indicator.html | 46 +++++++++++++++++++++++++++++ interface/skin.dmf | 9 ++++++ shiptest.dme | 1 + 6 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 code/modules/client/verbs/typing.dm create mode 100644 html/typing_indicator.html diff --git a/check_regex.yaml b/check_regex.yaml index d03e15391975..3b5e13a650e5 100644 --- a/check_regex.yaml +++ b/check_regex.yaml @@ -38,7 +38,7 @@ standards: - exactly: [ - 265, + 266, "non-bitwise << uses", '(? + +
+ + + + + + diff --git a/interface/skin.dmf b/interface/skin.dmf index 9d933e057c46..18122c5e3e89 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -90,6 +90,15 @@ window "mainwindow" background-color = #272727 is-visible = false saved-params = "" + elem "commandbar_spy" + type = BROWSER + is-default = false + pos = 0,0 + size = 200x200 + anchor1 = -1,-1 + anchor2 = -1,-1 + is-visible = false + saved-params = "" window "mapwindow" elem "mapwindow" diff --git a/shiptest.dme b/shiptest.dme index 096d653c7158..2b65bc6d6d58 100644 --- a/shiptest.dme +++ b/shiptest.dme @@ -1956,6 +1956,7 @@ #include "code\modules\client\verbs\ooc.dm" #include "code\modules\client\verbs\ping.dm" #include "code\modules\client\verbs\reset_held_keys.dm" +#include "code\modules\client\verbs\typing.dm" #include "code\modules\client\verbs\who.dm" #include "code\modules\clothing\chameleon.dm" #include "code\modules\clothing\clothing.dm"