Add treenode:RemoveNode

This commit is contained in:
Kenny Shields 2014-10-24 17:19:54 -04:00
parent dd5ae7d519
commit f4416ca519

View File

@ -268,6 +268,22 @@ function newobject:AddNode(text)
end end
--[[---------------------------------------------------------
- func: RemoveNode(id)
- desc: removes a node from the object
--]]---------------------------------------------------------
function newobject:RemoveNode(id)
id = id + 1
for k, v in ipairs(self.internals) do
if k == id then
v:Remove()
break
end
end
end
--[[--------------------------------------------------------- --[[---------------------------------------------------------
- func: SetOpen(bool) - func: SetOpen(bool)
- desc: sets whether or not the object is open - desc: sets whether or not the object is open