Add missing treenode method comments

This commit is contained in:
Kenny Shields 2014-07-01 21:08:45 -04:00
parent ec5d387927
commit e3a8654b5d

View File

@ -179,6 +179,10 @@ function newobject:mousereleased(x, y, button)
end end
--[[---------------------------------------------------------
- func: SetIcon(icon)
- desc: sets the object's icon
--]]---------------------------------------------------------
function newobject:SetIcon(icon) function newobject:SetIcon(icon)
if type(icon) == "string" then if type(icon) == "string" then
@ -191,12 +195,20 @@ function newobject:SetIcon(icon)
end end
--[[---------------------------------------------------------
- func: GetIcon()
- desc: gets the object's icon
--]]---------------------------------------------------------
function newobject:GetIcon() function newobject:GetIcon()
return self.icon return self.icon
end end
--[[---------------------------------------------------------
- func: SetText(text)
- desc: sets the object's text
--]]---------------------------------------------------------
function newobject:SetText(text) function newobject:SetText(text)
self.text = text self.text = text
@ -204,12 +216,20 @@ function newobject:SetText(text)
end end
--[[---------------------------------------------------------
- func: GetText()
- desc: gets the object's text
--]]---------------------------------------------------------
function newobject:GetText() function newobject:GetText()
return self.text return self.text
end end
--[[---------------------------------------------------------
- func: AddNode(text)
- desc: adds a new node to the object
--]]---------------------------------------------------------
function newobject:AddNode(text) function newobject:AddNode(text)
if not self.internals[1] then if not self.internals[1] then
@ -230,6 +250,10 @@ function newobject:AddNode(text)
end end
--[[---------------------------------------------------------
- func: SetOpen(bool)
- desc: sets whether or not the object is open
--]]---------------------------------------------------------
function newobject:SetOpen(bool) function newobject:SetOpen(bool)
self.open = bool self.open = bool