From a3e5a2960c5f153e7bbc3076fd81e382250a9712 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Tue, 1 Jul 2014 20:30:03 -0400 Subject: [PATCH] Add treenode:GetIcon --- objects/internal/treenode.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/objects/internal/treenode.lua b/objects/internal/treenode.lua index 4d79e45..acda781 100644 --- a/objects/internal/treenode.lua +++ b/objects/internal/treenode.lua @@ -189,6 +189,12 @@ function newobject:SetIcon(icon) end +function newobject:GetIcon() + + return self.icon + +end + function newobject:AddNode(text) if not self.internals[1] then