mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add in-game chat & update gui post-runnables timing & fix panel elements removal
This commit is contained in:
parent
731c72da7c
commit
c6951e0965
11 changed files with 100 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue