diff Libs/DF/normal_bar.lua @ 20:dc1c77254f80

- added close button to users panel. - framework update.
author Tercio
date Tue, 11 Aug 2015 12:46:46 -0300
parents 2f09fe4be15c
children dbd417f413a8
line wrap: on
line diff
--- a/Libs/DF/normal_bar.lua	Sat Jul 18 17:32:30 2015 -0300
+++ b/Libs/DF/normal_bar.lua	Tue Aug 11 12:46:46 2015 -0300
@@ -1,9 +1,10 @@
-
-
 
 local DF = _G ["DetailsFramework"]
+if (not DF or not DetailsFrameworkCanLoad) then
+	return 
+end
+
 local _
-
 local _rawset = rawset --> lua locals
 local _rawget = rawget --> lua locals
 local _setmetatable = setmetatable --> lua locals
@@ -619,7 +620,7 @@
 			for funcName, funcAddress in pairs (idx) do 
 				if (not BarMetaFunctions [funcName]) then
 					BarMetaFunctions [funcName] = function (object, ...)
-						local x = loadstring ( "return _G."..object.statusbar:GetName()..":"..funcName.."(...)")
+						local x = loadstring ( "return _G['"..object.statusbar:GetName().."']:"..funcName.."(...)")
 						return x (...)
 					end
 				end