mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
bindings.toml, config/bindings.toml file
This commit is contained in:
parent
7fdacffe53
commit
66476ee642
11 changed files with 79 additions and 31 deletions
17
res/bindings.toml
Normal file
17
res/bindings.toml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
devtools.console="key:grave-accent"
|
||||
movement.forward="key:w"
|
||||
movement.back="key:s"
|
||||
movement.left="key:a"
|
||||
movement.right="key:d"
|
||||
movement.jump="key:space"
|
||||
movement.sprint="key:left-ctrl"
|
||||
movement.crouch="key:left-shift"
|
||||
movement.cheat="key:r"
|
||||
camera.zoom="key:c"
|
||||
camera.mode="key:f4"
|
||||
player.noclip="key:n"
|
||||
player.flight="key:f"
|
||||
player.attack="mouse:left"
|
||||
player.build="mouse:right"
|
||||
player.pick="mouse:middle"
|
||||
hud.inventory="key:tab"
|
||||
|
|
@ -17,6 +17,7 @@ function on_open()
|
|||
|
||||
local panel = document.bindings_panel
|
||||
local bindings = core.get_bindings()
|
||||
table.sort(bindings, function(a, b) return a > b end)
|
||||
for i,name in ipairs(bindings) do
|
||||
panel:add(gui.template("binding", {
|
||||
id=name, name=gui.str(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue