mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add Chat hotkey
This commit is contained in:
parent
807abef2c4
commit
d7ad7ff460
4 changed files with 11 additions and 0 deletions
|
|
@ -377,6 +377,14 @@ function __vc_on_hud_open()
|
|||
hud.show_overlay("core:console", false, {"console"})
|
||||
end)
|
||||
end)
|
||||
input.add_callback("hud.chat", function()
|
||||
if hud.is_paused() then
|
||||
return
|
||||
end
|
||||
time.post_runnable(function()
|
||||
hud.show_overlay("core:console", false, {"chat"})
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
local RULES_FILE = "world:rules.toml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue