Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/textentry.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 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 |
| 536 APITextEntryFunctions = true | 537 APITextEntryFunctions = true |
| 537 local idx = getmetatable (TextEntryObject.editbox).__index | 538 local idx = getmetatable (TextEntryObject.editbox).__index |
| 538 for funcName, funcAddress in pairs (idx) do | 539 for funcName, funcAddress in pairs (idx) do |
| 539 if (not TextEntryMetaFunctions [funcName]) then | 540 if (not TextEntryMetaFunctions [funcName]) then |
| 540 TextEntryMetaFunctions [funcName] = function (object, ...) | 541 TextEntryMetaFunctions [funcName] = function (object, ...) |
| 541 local x = loadstring ( "return _G."..object.editbox:GetName()..":"..funcName.."(...)") | 542 local x = loadstring ( "return _G['"..object.editbox:GetName().."']:"..funcName.."(...)") |
| 542 return x (...) | 543 return x (...) |
| 543 end | 544 end |
| 544 end | 545 end |
| 545 end | 546 end |
| 546 end | 547 end |
