From c6776e3158fde6dc064cd29f2ed4efae57ad9dbd Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Tue, 1 Jul 2014 21:10:46 -0400 Subject: [PATCH] Add treenode:GetOpen --- objects/internal/treenode.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/objects/internal/treenode.lua b/objects/internal/treenode.lua index 23389bd..0b690dc 100644 --- a/objects/internal/treenode.lua +++ b/objects/internal/treenode.lua @@ -259,4 +259,14 @@ function newobject:SetOpen(bool) self.open = bool return self +end + +--[[--------------------------------------------------------- + - func: GetOpen() + - desc: gets whether or not the object is open +--]]--------------------------------------------------------- +function newobject:GetOpen() + + return self.open + end \ No newline at end of file