comparison Libs/DF/picture.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 5da06cb420d4
comparison
equal deleted inserted replaced
19:215f0dd37a6c 20:dc1c77254f80
1
2
3 1
4 local DF = _G ["DetailsFramework"] 2 local DF = _G ["DetailsFramework"]
3 if (not DF or not DetailsFrameworkCanLoad) then
4 return
5 end
6
5 local _ 7 local _
6
7 local _rawset = rawset --> lua local 8 local _rawset = rawset --> lua local
8 local _rawget = rawget --> lua local 9 local _rawget = rawget --> lua local
9 local _setmetatable = setmetatable --> lua local 10 local _setmetatable = setmetatable --> lua local
10 local _unpack = unpack --> lua local 11 local _unpack = unpack --> lua local
11 local _type = type --> lua local 12 local _type = type --> lua local
243 APIImageFunctions = true 244 APIImageFunctions = true
244 local idx = getmetatable (ImageObject.image).__index 245 local idx = getmetatable (ImageObject.image).__index
245 for funcName, funcAddress in pairs (idx) do 246 for funcName, funcAddress in pairs (idx) do
246 if (not ImageMetaFunctions [funcName]) then 247 if (not ImageMetaFunctions [funcName]) then
247 ImageMetaFunctions [funcName] = function (object, ...) 248 ImageMetaFunctions [funcName] = function (object, ...)
248 local x = loadstring ( "return _G."..object.image:GetName()..":"..funcName.."(...)") 249 local x = loadstring ( "return _G['"..object.image:GetName().."']:"..funcName.."(...)")
249 return x (...) 250 return x (...)
250 end 251 end
251 end 252 end
252 end 253 end
253 end 254 end