Typing indicators

This commit is contained in:
kevinz000
2020-02-27 23:58:49 -07:00
parent 879032c52f
commit 54a6c5a6fe
10 changed files with 118 additions and 3 deletions

View File

@@ -23,5 +23,4 @@
lay_down()
return
return ..()

View File

@@ -3,6 +3,17 @@
// Or we can have NPC's send actual keypresses and detect that by seeing no client
/mob/key_down(_key, client/user)
if(SSinput.typing_indicator_binds[_key])
var/macroset = winget(user, "mainwindow", "macro")
var/list/L = SSinput.macro_set_reverse_lookups[macroset]
var/valid = TRUE
if(length(L) > 1)
for(var/modifier in 2 to length(L))
if(!client.keys_held[modifier])
valid = FALSE
break
if(valid)
display_typing_indicator()
switch(_key)
if("Delete", "H")
if(!pulling)