framework update; added /dumpt to dump tables
This commit is contained in:
@@ -42,6 +42,7 @@ function DF:CreateCoolTip()
|
||||
version = version
|
||||
}
|
||||
_G.GameCooltip2 = CoolTip
|
||||
_G.GameCooltip = CoolTip --back compatibility
|
||||
|
||||
--> containers
|
||||
CoolTip.LeftTextTable = {}
|
||||
|
||||
+17
-6
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 353
|
||||
local dversion = 355
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -83,6 +83,13 @@ function DF.IsWotLKWow()
|
||||
end
|
||||
end
|
||||
|
||||
function DF.IsShadowlandsWow()
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 100000 and buildInfo >= 90000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
local roleBySpecTextureName = {
|
||||
DruidBalance = "DAMAGER",
|
||||
DruidFeralCombat = "DAMAGER",
|
||||
@@ -280,8 +287,6 @@ function DF:PrintVersion()
|
||||
print ("Details! Framework Version:", DF.FrameWorkVersion)
|
||||
end
|
||||
|
||||
LibStub:GetLibrary("AceTimer-3.0"):Embed (DF)
|
||||
|
||||
--> get the working folder
|
||||
do
|
||||
local path = string.match (debugstack (1, 1, 0), "AddOns\\(.+)fw.lua")
|
||||
@@ -3531,6 +3536,12 @@ function DFNamePlateBorderTemplateMixin:SetVertexColor(r, g, b, a)
|
||||
end
|
||||
end
|
||||
|
||||
function DFNamePlateBorderTemplateMixin:GetVertexColor()
|
||||
for i, texture in ipairs(self.Textures) do
|
||||
return texture:GetVertexColor();
|
||||
end
|
||||
end
|
||||
|
||||
function DFNamePlateBorderTemplateMixin:SetBorderSizes(borderSize, borderSizeMinPixels, upwardExtendHeightPixels, upwardExtendHeightMinPixels)
|
||||
self.borderSize = borderSize;
|
||||
self.borderSizeMinPixels = borderSizeMinPixels;
|
||||
@@ -4563,9 +4574,9 @@ end
|
||||
--DetailsFramework:RegisterScriptComm (ID, function(sourcePlayerName, ...) end)
|
||||
--DetailsFramework:SendScriptComm (ID, ...)
|
||||
|
||||
local aceComm = LibStub:GetLibrary ("AceComm-3.0")
|
||||
local LibAceSerializer = LibStub:GetLibrary ("AceSerializer-3.0")
|
||||
local LibDeflate = LibStub:GetLibrary ("LibDeflate")
|
||||
local aceComm = LibStub:GetLibrary ("AceComm-3.0", true)
|
||||
local LibAceSerializer = LibStub:GetLibrary ("AceSerializer-3.0", true)
|
||||
local LibDeflate = LibStub:GetLibrary ("LibDeflate", true)
|
||||
|
||||
DF.RegisteredScriptsComm = DF.RegisteredScriptsComm or {}
|
||||
|
||||
|
||||
+41
-6
@@ -7400,6 +7400,14 @@ DF.StatusBarFunctions = {
|
||||
return self.barTextureMask
|
||||
end,
|
||||
|
||||
HasTextureMask = function(self)
|
||||
if (not self.barTextureMask) then
|
||||
DF:Msg("Object doesn't not have a texture mask, create one using object:CreateTextureMask()", debugstack())
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
|
||||
SetBorderTexture = function(self, texture)
|
||||
if (not self:HasTextureMask()) then
|
||||
return
|
||||
@@ -7423,13 +7431,40 @@ DF.StatusBarFunctions = {
|
||||
return self.barBorderTextureForMask:GetTexture()
|
||||
end,
|
||||
|
||||
HasTextureMask = function(self)
|
||||
if (not self.barTextureMask) then
|
||||
DF:Msg("Object doesn't not have a texture mask, create one using object:CreateTextureMask()", debugstack())
|
||||
return false
|
||||
SetBorderColor = function(self, r, g, b, a)
|
||||
r, g, b, a = DF:ParseColors(r, g, b, a)
|
||||
|
||||
if (self.barBorderTextureForMask and self.barBorderTextureForMask:IsShown()) then
|
||||
self.barBorderTextureForMask:SetVertexColor(r, g, b, a)
|
||||
|
||||
--if there's a square border on the widget, remove its color
|
||||
if (self.border and self.border.UpdateSizes and self.border.SetVertexColor) then
|
||||
self.border:SetVertexColor(0, 0, 0, 0)
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
if (self.border and self.border.UpdateSizes and self.border.SetVertexColor) then
|
||||
self.border:SetVertexColor(r, g, b, a)
|
||||
|
||||
--adjust the mask border texture ask well in case the user set the mask color texture before setting a texture on it
|
||||
if (self.barBorderTextureForMask) then
|
||||
self.barBorderTextureForMask:SetVertexColor(r, g, b, a)
|
||||
end
|
||||
return
|
||||
end
|
||||
end,
|
||||
|
||||
GetBorderColor = function(self)
|
||||
if (self.barBorderTextureForMask and self.barBorderTextureForMask:IsShown()) then
|
||||
return self.barBorderTextureForMask:GetVertexColor()
|
||||
end
|
||||
|
||||
if (self.border and self.border.UpdateSizes and self.border.GetVertexColor) then
|
||||
return self.border:GetVertexColor()
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user