Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Tukui/Modules/Miscellaneous/UIWidgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ local Miscellaneous = T["Miscellaneous"]
local UIWidgets = CreateFrame("Frame")

function UIWidgets:SkinUIWidgetStatusBar(widgetInfo, widgetContainer)
if self:IsForbidden() then
return
end

local Bar = self.Bar
local Torghast = IsInJailersTower and IsInJailersTower() or false

Expand All @@ -14,9 +18,9 @@ function UIWidgets:SkinUIWidgetStatusBar(widgetInfo, widgetContainer)
if Bar.BorderLeft and Bar.BorderLeft.SetAlpha then Bar.BorderLeft:SetAlpha(0) end
if Bar.BorderRight and Bar.BorderRight.SetAlpha then Bar.BorderRight:SetAlpha(0) end
if Bar.BorderCenter and Bar.BorderCenter.SetAlpha then Bar.BorderCenter:SetAlpha(0) end

Bar:CreateBackdrop(Torghast and "Transparent" or "")

Bar.Backdrop:CreateShadow()
Bar.Backdrop:SetFrameLevel(Bar:GetFrameLevel())
Bar.Backdrop:SetOutside(Bar)
Expand Down Expand Up @@ -62,7 +66,7 @@ function UIWidgets:Enable()
MinimapWidget:SetParent(self.Holder)
MinimapWidget:ClearAllPoints()
MinimapWidget:SetPoint("CENTER")

if UIWidgetPowerBarContainerFrame then
if C.Misc.DisplayWidgetPowerBar then
-- This is power bar
Expand Down