Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/fw.lua @ 28:7523376ecaa3
- framework update.
| author | Tercioo |
|---|---|
| date | Fri, 18 Dec 2015 15:15:50 -0200 |
| parents | e16b1fc13935 |
| children | 5da06cb420d4 |
comparison
equal
deleted
inserted
replaced
| 27:f9601754ab46 | 28:7523376ecaa3 |
|---|---|
| 1 | 1 |
| 2 local dversion = 12 | 2 local dversion = 13 |
| 3 local major, minor = "DetailsFramework-1.0", dversion | 3 local major, minor = "DetailsFramework-1.0", dversion |
| 4 local DF, oldminor = LibStub:NewLibrary (major, minor) | 4 local DF, oldminor = LibStub:NewLibrary (major, minor) |
| 5 | 5 |
| 6 if (not DF) then | 6 if (not DF) then |
| 7 DetailsFrameworkCanLoad = false | 7 DetailsFrameworkCanLoad = false |
| 203 end | 203 end |
| 204 self.embeds [target] = true | 204 self.embeds [target] = true |
| 205 return target | 205 return target |
| 206 end | 206 end |
| 207 | 207 |
| 208 function DF:RemoveRealmName (name) | |
| 209 return name:gsub (("%-.*"), "") | |
| 210 end | |
| 211 | |
| 208 function DF:RemoveRealName (name) | 212 function DF:RemoveRealName (name) |
| 209 return name:gsub (("%-.*"), "") | 213 return name:gsub (("%-.*"), "") |
| 210 end | 214 end |
| 211 | 215 |
| 212 function DF:SetFontSize (fontString, ...) | 216 function DF:SetFontSize (fontString, ...) |
| 876 elseif (type == "slider") then | 880 elseif (type == "slider") then |
| 877 template_table = DF.slider_templates | 881 template_table = DF.slider_templates |
| 878 end | 882 end |
| 879 return template_table [template_name] | 883 return template_table [template_name] |
| 880 end | 884 end |
| 881 | 885 |
| 886 function DF.GetParentName (frame) | |
| 887 local parentName = frame:GetName() | |
| 888 if (not parentName) then | |
| 889 error ("Details! FrameWork: called $parent but parent was no name.", 2) | |
| 890 end | |
| 891 return parentName | |
| 892 end |
