add in-game chat & update gui post-runnables timing & fix panel elements removal

This commit is contained in:
MihailRis
2025-01-18 07:17:52 +03:00
parent 731c72da7c
commit c6951e0965
11 changed files with 100 additions and 7 deletions
+11
View File
@@ -134,6 +134,10 @@ function add_to_history(text)
end
function submit(text)
if #text == 0 then
document.prompt.focused = true
return
end
text = text:trim()
add_to_history(text)
@@ -204,4 +208,11 @@ function on_open(mode)
elseif mode then
modes:set(mode)
end
hud.close("core:ingame_chat")
end
function on_close()
time.post_runnable(function()
hud.open_permanent("core:ingame_chat")
end)
end