mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-08 17:10:32 +01:00
Auto-close slice edit panel if no slices
This commit is contained in:
parent
26fcbcbed9
commit
0902a26926
5
init.lua
5
init.lua
@ -563,6 +563,11 @@ schemedit.add_form("slice", {
|
||||
table[0,0;6.8,6;slices;]]..slices..[[;]]..selected..[[]
|
||||
]]
|
||||
|
||||
-- Close edit panel if no slices
|
||||
if self.panel_edit and slices == "" then
|
||||
self.panel_edit = nil
|
||||
end
|
||||
|
||||
if self.panel_add or self.panel_edit then
|
||||
local ypos_default, prob_default = "", ""
|
||||
local done_button = "button[5,7.18;2,1;done_add;"..F(S("Add")).."]"
|
||||
|
Loading…
Reference in New Issue
Block a user