Merge remote-tracking branch 'fork/master'
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 538
|
||||
local dversion = 539
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary(major, minor)
|
||||
|
||||
|
||||
+6
-1
@@ -6,7 +6,12 @@ if (not detailsFramework or not DetailsFrameworkCanLoad) then
|
||||
end
|
||||
|
||||
local unpack = unpack
|
||||
local CreateFrame = CreateFrame
|
||||
local G_CreateFrame = _G.CreateFrame
|
||||
local CreateFrame = function (frameType , name, parent, template, id)
|
||||
local frame = G_CreateFrame(frameType , name, parent, template, id)
|
||||
detailsFramework:Mixin(frame, detailsFramework.FrameFunctions)
|
||||
return frame
|
||||
end
|
||||
local PixelUtil = PixelUtil
|
||||
local GetTime = GetTime
|
||||
local GetSpellInfo = GetSpellInfo
|
||||
|
||||
@@ -825,4 +825,18 @@ detailsFramework.StatusBarFunctions = {
|
||||
GetBorderColor = function(self)
|
||||
return
|
||||
end,
|
||||
}
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--frame mixin
|
||||
local createTexture = CreateFrame('Frame').CreateTexture -- need a local "original" CreateFrame
|
||||
|
||||
detailsFramework.FrameFunctions = {
|
||||
CreateTexture = function(self, name, drawLayer, templateName, subLevel)
|
||||
local texture = createTexture(self, name, drawLayer, templateName, subLevel)
|
||||
-- pixel perfection
|
||||
texture:SetTexelSnappingBias(0)
|
||||
texture:SetSnapToPixelGrid(false)
|
||||
return texture
|
||||
end,
|
||||
}
|
||||
@@ -4722,6 +4722,7 @@ function detailsFramework:CreateBorderFrame(parent, name)
|
||||
local parentName = name or ("DetailsFrameworkBorderFrame" .. tostring(math.random(1, 100000000)))
|
||||
|
||||
local f = CreateFrame("frame", parentName, parent, "BackdropTemplate")
|
||||
detailsFramework:Mixin(f, detailsFramework.FrameFunctions)
|
||||
f:SetFrameLevel(f:GetFrameLevel()+1)
|
||||
f:SetAllPoints()
|
||||
|
||||
|
||||
@@ -14,7 +14,13 @@ local unpack = table.unpack or unpack --lua local
|
||||
local type = type --lua local
|
||||
local floor = math.floor --lua local
|
||||
local loadstring = loadstring --lua local
|
||||
local CreateFrame = CreateFrame
|
||||
local G_CreateFrame = _G.CreateFrame
|
||||
local CreateFrame = function (frameType , name, parent, template, id)
|
||||
local frame = G_CreateFrame(frameType , name, parent, template, id)
|
||||
detailsFramework:Mixin(frame, detailsFramework.FrameFunctions)
|
||||
frame:SetClipsChildren(false)
|
||||
return frame
|
||||
end
|
||||
|
||||
local UnitHealth = UnitHealth
|
||||
local UnitHealthMax = UnitHealthMax
|
||||
|
||||
Reference in New Issue
Block a user