Add files via upload

master
AiTechEye 2021-02-13 20:44:10 +01:00 committed by GitHub
parent 452933e67d
commit 204e3a8cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 3 deletions

View File

@ -1,6 +1,10 @@
if true then return end
keystrokes = {}
keys = {{"Up","up"},{"Down","down"},{"Left","left"},{"Right","right"},{"Sneak","sneak"},{"Special","aux1"},{"Jump","jump"}}
keystrokes = {enabled=minetest.settings:get_bool("xaenvironment_keystrokes")}
if not keystrokes.enabled then
return
end
keys = {{"Up","up"},{"Down","down"},{"Left","left"},{"Right","right"},{"Sneak","sneak"},{"Special","aux1"},{"Jump","jump"},{"RMB","RMB"},{"LMB","LMB"}}
minetest.register_on_joinplayer(function(player)
if not minetest.is_singleplayer() then
return
@ -36,6 +40,16 @@ minetest.register_on_joinplayer(function(player)
scale = {x=8,y=3},
position={x=x+0.237,y=y+0.88}
}
b.LMB={
scale = {x=3,y=3},
position={x=x+0.05,y=y+0.7}
}
b.RMB={
scale = {x=3,y=3},
position={x=x+0.15,y=y+0.7}
}
for i, v in pairs(b) do
b[i].text = "default_cloud.png^[colorize:#333a"
b[i].offset = {x=0,y=0}