Remove “Select” button
This commit is contained in:
parent
1404f30a43
commit
a9c1fe26d9
7
init.lua
7
init.lua
@ -73,9 +73,8 @@ function ltool.database(index)
|
|||||||
local treestr = ltool.get_tree_names(index)
|
local treestr = ltool.get_tree_names(index)
|
||||||
return ""..
|
return ""..
|
||||||
"textlist[0,0;5,6;treelist;"..treestr..";"..tostring(index)..";false]"..
|
"textlist[0,0;5,6;treelist;"..treestr..";"..tostring(index)..";false]"..
|
||||||
"button[0,6.5;2,1;database_select;Select]"..
|
"button[0,6.5;2,1;database_copy;Copy to editor]"..
|
||||||
"button[2.1,6.5;2,1;database_copy;Copy to editor]"..
|
"button[2.1,6.5;2,1;database_update;Update list]"
|
||||||
"button[4.2,6.5;2,1;database_update;Update list]"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function ltool.plant()
|
function ltool.plant()
|
||||||
@ -244,8 +243,6 @@ function ltool.process_form(player,formname,fields)
|
|||||||
end
|
end
|
||||||
local formspec = ltool.loadtreeform..ltool.header(1)..ltool.edit(ltool.trees[sel])
|
local formspec = ltool.loadtreeform..ltool.header(1)..ltool.edit(ltool.trees[sel])
|
||||||
minetest.show_formspec(playername, "ltool:treeform", formspec)
|
minetest.show_formspec(playername, "ltool:treeform", formspec)
|
||||||
elseif(fields.database_select) then
|
|
||||||
|
|
||||||
end
|
end
|
||||||
elseif(formname == "ltool:loadtreeform") then
|
elseif(formname == "ltool:loadtreeform") then
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user