From c1d3021590db4f1306a82a07117b5f053eaa451b Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Tue, 1 Jul 2014 20:49:48 -0400 Subject: [PATCH] Add treenode:SetText and treenode:GetText --- objects/internal/treenode.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/objects/internal/treenode.lua b/objects/internal/treenode.lua index acda781..5757c7d 100644 --- a/objects/internal/treenode.lua +++ b/objects/internal/treenode.lua @@ -195,6 +195,19 @@ function newobject:GetIcon() end +function newobject:SetText(text) + + self.text = text + return self + +end + +function newobject:GetText() + + return self.text + +end + function newobject:AddNode(text) if not self.internals[1] then