mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 09:30: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
|
||||
|
||||
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
|
||||
|
||||
if slices ~= "" and self.selected and not self.panel_add then
|
||||
if not self.panel_edit then
|
||||
form = form..[[
|
||||
button[2,6;2,1;remove;]]..F(S("- Remove slice"))..[[]
|
||||
button[4,6;2,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
||||
button[2.4,6;2.4,1;remove;]]..F(S("- Remove slice"))..[[]
|
||||
button[4.8,6;2.4,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
||||
]]
|
||||
else
|
||||
form = form..[[
|
||||
button[2,6;2,1;remove;]]..F(S("- Remove slice"))..[[]
|
||||
button[4,6;2,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
||||
button[2.4,6;2.4,1;remove;]]..F(S("- Remove slice"))..[[]
|
||||
button[4.8,6;2.4,1;edit;]]..F(S("+/- Edit slice"))..[[]
|
||||
]]
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user