comparison Libs/DF/fw.lua @ 53:36b4d9559b69 v7.3.0.053

- framework update.
author Tercio
date Sat, 14 Oct 2017 17:09:17 -0300
parents 7d5934415ad0
children 307f5af3ad02
comparison
equal deleted inserted replaced
52:20225ee9762c 53:36b4d9559b69
1 1
2 local dversion = 54 2 local dversion = 58
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
114 "CreateAnimationHub", 114 "CreateAnimationHub",
115 "CreateAnimation", 115 "CreateAnimation",
116 "CreateScrollBox", 116 "CreateScrollBox",
117 "CreateBorder", 117 "CreateBorder",
118 "FormatNumber", 118 "FormatNumber",
119 "IntegerToTimer",
119 } 120 }
120 121
121 DF.table = {} 122 DF.table = {}
122 123
123 function DF:GetFrameworkFolder() 124 function DF:GetFrameworkFolder()
423 return "topleft", object.widget:GetParent(), "topleft", 0, 0 424 return "topleft", object.widget:GetParent(), "topleft", 0, 0
424 end 425 end
425 426
426 if (_type (v1) == "string") then 427 if (_type (v1) == "string") then
427 local frameGlobal = _G [v1] 428 local frameGlobal = _G [v1]
428 if (frameGlobal and frameGlobal.GetObjectType) then 429 if (frameGlobal and type (frameGlobal) == "table" and frameGlobal.GetObjectType) then
429 return DF:CheckPoints (frameGlobal, v2, v3, v4, v5, object) 430 return DF:CheckPoints (frameGlobal, v2, v3, v4, v5, object)
430 end 431 end
431 432
432 elseif (_type (v2) == "string") then 433 elseif (_type (v2) == "string") then
433 local frameGlobal = _G [v2] 434 local frameGlobal = _G [v2]
434 if (frameGlobal and frameGlobal.GetObjectType) then 435 if (frameGlobal and type (frameGlobal) == "table" and frameGlobal.GetObjectType) then
435 return DF:CheckPoints (v1, frameGlobal, v3, v4, v5, object) 436 return DF:CheckPoints (v1, frameGlobal, v3, v4, v5, object)
436 end 437 end
437 end 438 end
438 439
439 if (_type (v1) == "string" and _type (v2) == "table") then --> :setpoint ("left", frame, _, _, _) 440 if (_type (v1) == "string" and _type (v2) == "table") then --> :setpoint ("left", frame, _, _, _)