Mercurial > wow > hansgar_and_franzok_assist
comparison 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 |
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 locals | 8 local _rawset = rawset --> lua locals |
| 8 local _rawget = rawget --> lua locals | 9 local _rawget = rawget --> lua locals |
| 9 local _setmetatable = setmetatable --> lua locals | 10 local _setmetatable = setmetatable --> lua locals |
| 10 local _unpack = unpack --> lua locals | 11 local _unpack = unpack --> lua locals |
| 11 local _type = type --> lua locals | 12 local _type = type --> lua locals |
| 617 APIBarFunctions = true | 618 APIBarFunctions = true |
| 618 local idx = getmetatable (BarObject.statusbar).__index | 619 local idx = getmetatable (BarObject.statusbar).__index |
| 619 for funcName, funcAddress in pairs (idx) do | 620 for funcName, funcAddress in pairs (idx) do |
| 620 if (not BarMetaFunctions [funcName]) then | 621 if (not BarMetaFunctions [funcName]) then |
| 621 BarMetaFunctions [funcName] = function (object, ...) | 622 BarMetaFunctions [funcName] = function (object, ...) |
| 622 local x = loadstring ( "return _G."..object.statusbar:GetName()..":"..funcName.."(...)") | 623 local x = loadstring ( "return _G['"..object.statusbar:GetName().."']:"..funcName.."(...)") |
| 623 return x (...) | 624 return x (...) |
| 624 end | 625 end |
| 625 end | 626 end |
| 626 end | 627 end |
| 627 end | 628 end |
