add Chat hotkey
This commit is contained in:
parent
807abef2c4
commit
d7ad7ff460
@ -19,3 +19,4 @@ player.pick="mouse:middle"
|
|||||||
player.drop="key:q"
|
player.drop="key:q"
|
||||||
player.fast_interaction="key:x"
|
player.fast_interaction="key:x"
|
||||||
hud.inventory="key:tab"
|
hud.inventory="key:tab"
|
||||||
|
hud.chat="key:t"
|
||||||
|
|||||||
@ -377,6 +377,14 @@ function __vc_on_hud_open()
|
|||||||
hud.show_overlay("core:console", false, {"console"})
|
hud.show_overlay("core:console", false, {"console"})
|
||||||
end)
|
end)
|
||||||
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
|
end
|
||||||
|
|
||||||
local RULES_FILE = "world:rules.toml"
|
local RULES_FILE = "world:rules.toml"
|
||||||
|
|||||||
@ -33,6 +33,7 @@ movement.sprint=Sprint
|
|||||||
movement.crouch=Crouch
|
movement.crouch=Crouch
|
||||||
movement.cheat=Cheat
|
movement.cheat=Cheat
|
||||||
hud.inventory=Inventory
|
hud.inventory=Inventory
|
||||||
|
hud.chat=Chat
|
||||||
player.pick=Pick Block
|
player.pick=Pick Block
|
||||||
player.attack=Attack
|
player.attack=Attack
|
||||||
player.destroy=Destroy
|
player.destroy=Destroy
|
||||||
|
|||||||
@ -103,6 +103,7 @@ movement.sprint=Ускорение
|
|||||||
movement.crouch=Красться
|
movement.crouch=Красться
|
||||||
movement.cheat=Чит
|
movement.cheat=Чит
|
||||||
hud.inventory=Инвентарь
|
hud.inventory=Инвентарь
|
||||||
|
hud.chat=Чат
|
||||||
player.pick=Подобрать Блок
|
player.pick=Подобрать Блок
|
||||||
player.attack=Атаковать
|
player.attack=Атаковать
|
||||||
player.destroy=Сломать
|
player.destroy=Сломать
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user