From a430220913804bc0dc9f435065fd9faa2cf55618 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 26 Sep 2022 11:22:22 -0300 Subject: [PATCH] GameCooltip visual fix --- Libs/DF/cooltip.lua | 19 ------------------- Libs/DF/fw.lua | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/Libs/DF/cooltip.lua b/Libs/DF/cooltip.lua index 1b7c351d..bd648b7b 100644 --- a/Libs/DF/cooltip.lua +++ b/Libs/DF/cooltip.lua @@ -180,16 +180,6 @@ function DF:CreateCoolTip() self:SetBackdropColor(DF:ParseColors(defaultBackdropColor)) self:SetBackdropBorderColor(DF:ParseColors(defaultBackdropBorderColor)) - if (not self.innerBorderTexture) then - self.innerBorderTexture = self:CreateTexture(nil, "overlay") - self.innerBorderTexture:SetAllPoints() - local atlasInfo = C_Texture.GetAtlasInfo("Options_InnerFrame") - self.innerBorderTexture:SetTexture(atlasInfo.file) - self.innerBorderTexture:SetTexCoord(atlasInfo.leftTexCoord + 0.05, atlasInfo.rightTexCoord - 0.05, atlasInfo.topTexCoord + 0.05, atlasInfo.bottomTexCoord - 0.05) - self.innerBorderTexture:Hide() - self.innerBorderTexture:SetAlpha(0) --not in use due to a failure in the texture - end - if (not self.frameBackgroundTexture) then self.frameBackgroundTexture = self:CreateTexture("$parent_FrameBackgroundTexture", "BACKGROUND", nil, 2) self.frameBackgroundTexture:SetColorTexture(0, 0, 0, 0) @@ -2185,9 +2175,6 @@ function DF:CreateCoolTip() frame1.frameBackgroundTexture:SetColorTexture(0, 0, 0, 0) frame2.frameBackgroundTexture:SetColorTexture(0, 0, 0, 0) - frame1.innerBorderTexture:Hide() - frame2.innerBorderTexture:Hide() - if (not fromPreset) then CoolTip:Preset(3, true) end @@ -3135,9 +3122,6 @@ function DF:CreateCoolTip() self:SetBackdrop(1, defaultBackdrop, defaultBackdropColor, defaultBackdropBorderColor) self:SetBackdrop(2, defaultBackdrop, defaultBackdropColor, defaultBackdropBorderColor) - frame1.innerBorderTexture:Show() - frame2.innerBorderTexture:Show() - elseif (presetId == 3) then --default used when Cooltip:Reset() is called self:SetOption("TextFont", DF:GetBestFontForLanguage()) self:SetOption("TextColor", "orange") @@ -3150,9 +3134,6 @@ function DF:CreateCoolTip() self:SetBackdrop(1, defaultBackdrop, defaultBackdropColor, defaultBackdropBorderColor) self:SetBackdrop(2, defaultBackdrop, defaultBackdropColor, defaultBackdropBorderColor) - - frame1.innerBorderTexture:Show() - frame2.innerBorderTexture:Show() end end diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 141ab084..93a3fd75 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 363 +local dversion = 364 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor)