bindings.toml, config/bindings.toml file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user