mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Remove controls listed in the pause menu (no touchscreen) (#13282)
This commit is contained in:
parent
15f73258fd
commit
c2c8d4d410
5 changed files with 11 additions and 45 deletions
|
@ -47,13 +47,13 @@ end
|
|||
|
||||
|
||||
local change_keys = {
|
||||
query_text = "Change Keys",
|
||||
query_text = "Controls",
|
||||
requires = {
|
||||
keyboard_mouse = true,
|
||||
},
|
||||
get_formspec = function(self, avail_w)
|
||||
local btn_w = math.min(avail_w, 3)
|
||||
return ("button[0,0;%f,0.8;btn_change_keys;%s]"):format(btn_w, fgettext("Change Keys")), 0.8
|
||||
return ("button[0,0;%f,0.8;btn_change_keys;%s]"):format(btn_w, fgettext("Controls")), 0.8
|
||||
end,
|
||||
on_submit = function(self, fields)
|
||||
if fields.btn_change_keys then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue