- Release for 7.0.3 patch.
- Major Framework update. - Nick-Tag library upodate.
This commit is contained in:
+14
-5
@@ -2493,7 +2493,7 @@ function DF:CreateCoolTip()
|
||||
end
|
||||
|
||||
--> check data integrity
|
||||
if (type (iconTexture) ~= "string" and (type (iconTexture) ~= "table" or not iconTexture.GetObjectType or iconTexture:GetObjectType() ~= "Texture") ) then
|
||||
if ( (type (iconTexture) ~= "string" and type (iconTexture) ~= "number") and (type (iconTexture) ~= "table" or not iconTexture.GetObjectType or iconTexture:GetObjectType() ~= "Texture") ) then
|
||||
return --> return error
|
||||
end
|
||||
|
||||
@@ -3033,10 +3033,17 @@ function DF:CreateCoolTip()
|
||||
--> all done
|
||||
CoolTip:ClearAllOptions()
|
||||
|
||||
local preset2_backdrop = {bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = DF.folder .. "border_3", tile=true,
|
||||
edgeSize = 16, tileSize = 64, insets = {left = 3, right = 3, top = 4, bottom = 4}}
|
||||
-- local preset2_backdrop = {bgFile = [[Interface\DialogFrame\UI-DialogBox-Background-Dark]], edgeFile = DF.folder .. "border_3", tile=true,
|
||||
-- edgeSize = 16, tileSize = 64, insets = {left = 3, right = 3, top = 4, bottom = 4}}
|
||||
|
||||
local preset2_backdrop = {bgFile = DF.folder .. "background", edgeFile = [[Interface\Buttons\WHITE8X8]], tile = true,
|
||||
edgeSize = 1, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}}
|
||||
local default_backdrop_color = {0.09019, 0.09019, 0.18823, 0.8}
|
||||
local default_backdropborder_color = {1, 1, 1, 1}
|
||||
|
||||
local gray_table = {0.37, 0.37, 0.37, 0.95}
|
||||
local white_table = {1, 1, 1, 1}
|
||||
local black_table = {0.2, 0.2, 0.2, 1}
|
||||
|
||||
function CoolTip:Preset (number)
|
||||
self:Reset()
|
||||
@@ -3058,9 +3065,11 @@ function DF:CreateCoolTip()
|
||||
self:SetOption ("ButtonsYMod", -4)
|
||||
self:SetOption ("YSpacingMod", -4)
|
||||
self:SetOption ("IgnoreButtonAutoHeight", true)
|
||||
self:SetColor (1, 0.5, 0.5, 0.5, 0.5)
|
||||
|
||||
self:SetBackdrop (1, preset2_backdrop, nil, white_table)
|
||||
--self:SetColor (1, 0.5, 0.5, 0.5, 0.5)
|
||||
self:SetColor (1, 0.5, 0.5, 0.5, 0)
|
||||
|
||||
self:SetBackdrop (1, preset2_backdrop, gray_table, black_table)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user