mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Resize slice edit buttons
This commit is contained in:
parent
7797aa8de6
commit
27c0c2764c
10
init.lua
10
init.lua
@ -468,19 +468,19 @@ schemedit.add_form("slice", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not self.panel_edit then
|
if not self.panel_edit then
|
||||||
form = form.."button[0,6;2,1;add;"..F(S("+ Add slice")).."]"
|
form = form.."button[0,6;2.4,1;add;"..F(S("+ Add slice")).."]"
|
||||||
end
|
end
|
||||||
|
|
||||||
if slices ~= "" and self.selected and not self.panel_add then
|
if slices ~= "" and self.selected and not self.panel_add then
|
||||||
if not self.panel_edit then
|
if not self.panel_edit then
|
||||||
form = form..[[
|
form = form..[[
|
||||||
button[2,6;2,1;remove;]]..F(S("- Remove slice"))..[[]
|
button[2.4,6;2.4,1;remove;]]..F(S("- Remove slice"))..[[]
|
||||||
button[4,6;2,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
button[4.8,6;2.4,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
||||||
]]
|
]]
|
||||||
else
|
else
|
||||||
form = form..[[
|
form = form..[[
|
||||||
button[2,6;2,1;remove;]]..F(S("- Remove slice"))..[[]
|
button[2.4,6;2.4,1;remove;]]..F(S("- Remove slice"))..[[]
|
||||||
button[4,6;2,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
button[4.8,6;2.4,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user