pfUI:RegisterModule("skin", function () -- durability frame pfUI.durability = CreateFrame("Frame","pfDurability",UIParent) if pfUI.minimap then pfUI.durability:SetPoint("TOPLEFT", pfUI.minimap, "BOTTOMLEFT", 0, -35) else pfUI.durability:SetPoint("LEFT", UIParent, "RIGHT", -120, 120) end UpdateMovable(pfUI.durability) pfUI.durability:SetWidth(80) pfUI.durability:SetHeight(70) pfUI.durability:SetFrameStrata("BACKGROUND") DurabilityFrame:SetParent(pfUI.durability) DurabilityFrame:SetAllPoints(pfUI.durability) DurabilityFrame:SetFrameLevel(1) DurabilityFrame.SetPoint = function() return end if C.appearance.cd.blizzard == "1" then hooksecurefunc("PaperDollItemSlotButton_Update", function() local cooldown = getglobal(this:GetName().."Cooldown") if cooldown then cooldown.pfCooldownType = "ALL" end end) hooksecurefunc("SpellButton_UpdateButton", function() local cooldown = getglobal(this:GetName().."Cooldown") if cooldown then cooldown.pfCooldownType = "ALL" end end) end _, class = UnitClass("player") local color = RAID_CLASS_COLORS[class] local cr, cg, cb = color.r , color.g, color.b local boxes = { "DropDownList1MenuBackdrop", "DropDownList2MenuBackdrop", "DropDownList1Backdrop", "DropDownList2Backdrop", } local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate") pfUIButton:SetPoint("TOP", 0, -10) pfUIButton:SetText(T["|cff33ffccpf|cffffffffUI|cffcccccc Config"]) pfUIButton:SetScript("OnClick", function() pfUI.gui:Show() HideUIPanel(GameMenuFrame) end) SkinButton(pfUIButton) local point, relativeTo, relativePoint, xOffset, yOffset = GameMenuButtonOptions:GetPoint() GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22) for _, box in pairs(boxes) do local b = getglobal(box) CreateBackdrop(b, nil, true, .8) end if C.global.errors_limit == "1" then UIErrorsFrame:SetHeight(25) end if C.global.errors_hide == "1" then UIErrorsFrame:Hide() end end)