Skip to content

Commit

Permalink
[Dropdown] Skin on Cata and Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
tukz committed Sep 26, 2024
1 parent f8b7ba6 commit b8d14db
Showing 1 changed file with 4 additions and 58 deletions.
62 changes: 4 additions & 58 deletions Tukui/Modules/Miscellaneous/DropDown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,65 +13,11 @@ DropDown.ChatMenus = {
}

function DropDown:Skin()
if T.Retail then
local Dropdown = Menu.GetManager():GetOpenMenu()

if Dropdown then
Dropdown:StripTextures()
Dropdown:SetTemplate()
end
else
for i = 1, Levels do
local Backdrop
local Dropdown = Menu.GetManager():GetOpenMenu()

Backdrop = _G["DropDownList"..i.."MenuBackdrop"]
if Backdrop and not Backdrop.IsSkinned then
if Backdrop.NineSlice then
Backdrop.NineSlice:SetAlpha(0)
end

Backdrop:StripTextures()
Backdrop:CreateBackdrop("Default")
Backdrop:CreateShadow()
Backdrop.IsSkinned = true
end

Backdrop = _G["DropDownList"..i.."Backdrop"]
if Backdrop and not Backdrop.IsSkinned then
if Backdrop.NineSlice then
Backdrop.NineSlice:SetAlpha(0)
end

Backdrop:StripTextures()
Backdrop:CreateBackdrop("Default")
Backdrop:CreateShadow()
Backdrop.IsSkinned = true
end

Backdrop = _G["Lib_DropDownList"..i.."MenuBackdrop"]
if Backdrop and not Backdrop.IsSkinned then
if Backdrop.NineSlice then
Backdrop.NineSlice:SetAlpha(0)
end

Backdrop:StripTextures()
Backdrop:CreateBackdrop("Default")
Backdrop:CreateShadow()
Backdrop.IsSkinned = true
end

Backdrop = _G["Lib_DropDownList"..i.."Backdrop"]
if Backdrop and not Backdrop.IsSkinned then
if Backdrop.NineSlice then
Backdrop.NineSlice:SetAlpha(0)
end

Backdrop:StripTextures()
Backdrop:CreateBackdrop("Default")
Backdrop:CreateShadow()
Backdrop.IsSkinned = true
end
end
if Dropdown then
Dropdown:StripTextures()
Dropdown:SetTemplate()
end
end

Expand Down

0 comments on commit b8d14db

Please sign in to comment.