From a670f75d338d1a34c330f54f607fffcf39b7f491 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 21 Mar 2020 12:42:41 +0100 Subject: [PATCH] thirdparty: make undocked omen skin more appealing --- modules/thirdparty-tbc.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/thirdparty-tbc.lua b/modules/thirdparty-tbc.lua index 748da854..75641642 100644 --- a/modules/thirdparty-tbc.lua +++ b/modules/thirdparty-tbc.lua @@ -29,6 +29,11 @@ pfUI:RegisterModule("thirdparty-tbc", "tbc", function () Omen.ModuleList.GetHeight = Omen.ModuleList._GetHeight Omen.ModuleList:SetHeight(20) + -- backdrop adjustments + if Omen.BarList.backdrop then + Omen.BarList.backdrop:SetPoint("BOTTOMRIGHT", default_border, -18-default_border) + end + OmenResizeGrip:Hide() Omen.Anchor:Show() end, @@ -51,6 +56,10 @@ pfUI:RegisterModule("thirdparty-tbc", "tbc", function () Omen.UpdateDisplay = function(self) hookUpdateDisplay(self) + StripTextures(Omen.Title) + CreateBackdrop(Omen.Title, nil, nil, (C.thirdparty.chatbg == "1" and .8)) + CreateBackdropShadow(Omen.Title) + StripTextures(Omen.ModuleList) CreateBackdrop(Omen.ModuleList, nil, nil, (C.thirdparty.chatbg == "1" and .8)) CreateBackdropShadow(Omen.ModuleList) @@ -59,11 +68,6 @@ pfUI:RegisterModule("thirdparty-tbc", "tbc", function () CreateBackdrop(Omen.BarList, nil, nil, (C.thirdparty.chatbg == "1" and .8)) CreateBackdropShadow(Omen.BarList) - -- backdrop adjustments - if Omen.BarList.backdrop then - Omen.BarList.backdrop:SetPoint("BOTTOMRIGHT", default_border, -18-default_border) - end - if C.thirdparty.chatbg == "1" and C.chat.global.custombg == "1" then local r, g, b, a = strsplit(",", C.chat.global.background) Omen.BarList.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))