mirror of
https://github.com/Insality/druid
synced 2025-06-27 18:37:45 +02:00
#56 Grid now don't delete nodes on grid:clear. Now only reset the nodes array
This commit is contained in:
parent
94e882577b
commit
b9ebedbcf9
@ -157,12 +157,10 @@ function M.get_all_pos(self)
|
||||
end
|
||||
|
||||
|
||||
--- Clear all items from the grid
|
||||
--- Clear grid nodes array. GUI nodes will be not deleted!
|
||||
-- If you want to delete GUI nodes, use grid.nodes array before grid:clear
|
||||
-- @function grid:clear
|
||||
function M.clear(self)
|
||||
for i = 1, #self.nodes do
|
||||
gui.delete_node(self.nodes[i])
|
||||
end
|
||||
self.nodes = {}
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user