Add tree:RemoveNode

This commit is contained in:
Kenny Shields 2014-10-23 19:29:21 -04:00
parent 2e0b3a2feb
commit dd5ae7d519

View File

@ -288,6 +288,21 @@ function newobject:AddNode(text)
end
--[[---------------------------------------------------------
- func: RemoveNode(id)
- desc: removes a node from the object
--]]---------------------------------------------------------
function newobject:RemoveNode(id)
for k, v in ipairs(self.children) do
if k == id then
v:Remove()
break
end
end
end
--[[---------------------------------------------------------
- func: GetVerticalScrollBody()
- desc: gets the object's vertical scroll body