Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/slider.lua @ 20:dc1c77254f80
- added close button to users panel.
- framework update.
| author | Tercio |
|---|---|
| date | Tue, 11 Aug 2015 12:46:46 -0300 |
| parents | 6dd01dcec75e |
| children | dbd417f413a8 |
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 |
| 964 APISliderFunctions = true | 965 APISliderFunctions = true |
| 965 local idx = getmetatable (SliderObject.slider).__index | 966 local idx = getmetatable (SliderObject.slider).__index |
| 966 for funcName, funcAddress in pairs (idx) do | 967 for funcName, funcAddress in pairs (idx) do |
| 967 if (not SliderMetaFunctions [funcName]) then | 968 if (not SliderMetaFunctions [funcName]) then |
| 968 SliderMetaFunctions [funcName] = function (object, ...) | 969 SliderMetaFunctions [funcName] = function (object, ...) |
| 969 local x = loadstring ( "return _G."..object.slider:GetName()..":"..funcName.."(...)") | 970 local x = loadstring ( "return _G['"..object.slider:GetName().."']:"..funcName.."(...)") |
| 970 return x (...) | 971 return x (...) |
| 971 end | 972 end |
| 972 end | 973 end |
| 973 end | 974 end |
| 974 end | 975 end |
