-- someone wanted the feature to hide the dressing rooms' backgrounds |
local function ToggleBG(notog) |
if not notog then CU_HideBG = not CU_HideBG end |
local f = (CU_HideBG and DressUpBackgroundTopLeft.Hide) or DressUpBackgroundTopLeft.Show |
f(DressUpBackgroundTopLeft) |
f(DressUpBackgroundTopRight) |
f(DressUpBackgroundBotLeft) |
f(DressUpBackgroundBotRight) |
if AuctionDressUpBackgroundTop then |
f(AuctionDressUpBackgroundTop) |
f(AuctionDressUpBackgroundBot) |
if DressUpBackgroundTopLeft then |
local f = (CU_HideBG and DressUpBackgroundTopLeft.Hide) or DressUpBackgroundTopLeft.Show |
f(DressUpBackgroundTopLeft) |
f(DressUpBackgroundTopRight) |
f(DressUpBackgroundBotLeft) |
f(DressUpBackgroundBotRight) |
if AuctionDressUpBackgroundTop then |
f(AuctionDressUpBackgroundTop) |
f(AuctionDressUpBackgroundBot) |
end |
end |
end |
|