local A, L = ... -- local B, C, L, DB, P = unpack(ns) -- local S = P:GetModule("Skins") -- local M = B:GetModule("Misc") local _G = getfenv(0) local select, pairs, type = select, pairs, type local function ReskinFrame(frame) -- L.CreateBackdrop(frame) -- frame.SetBackdrop = L.Dummy -- frame:SetBackdropColor(0, 0, 0, 0) -- frame.SetBackdropColor = L.Dummy -- frame:SetBackdropBorderColor(0, 0, 0, 0) -- frame.SetBackdropBorderColor = L.Dummy -- L.CreateBackdrop(frame) -- B.SetBD(frame, nil, 0, 0, 0, 0) end function MerInspect() if not IsAddOnLoaded("MerInspect") then return end hooksecurefunc("ShowInspectItemListFrame", function(_, parent) local frame = parent.inspectFrame if not frame then return end -- frame:SetFrameLevel(1) for i = 1, frame:GetNumChildren() do local child = select(i, frame:GetChildren()) if child and child.itemString then child.itemString:SetFont(child.itemString:GetFont(), 12, "OUTLINE") -- 装备字体描边 end end -- local f = parent:GetName() -- if (f == "InspectFrame" or f == "PaperDollFrame") then -- frame:SetPoint("TOPLEFT", parent, "TOPRIGHT", -33, -15) -- else -- frame:SetPoint("TOPLEFT", parent, "TOPRIGHT", 1, 0) -- end -- if not frame.styled then -- ReskinFrame(frame) -- frame.styled = true -- end end) hooksecurefunc("ClassicStatsFrameTemplate_OnShow", function(self) if not self.styled then local category = {self.AttributesCategory, self.ResistanceCategory, self.EnhancementsCategory, self.SuitCategory} for _, v in pairs(category) do v.Background:Hide() -- local line = v:CreateTexture(nil, "ARTWORK") -- line:SetSize(180, oUF_SimpleConfig.colors.bgMultiplier) -- line:SetPoint("BOTTOM", 0, 8) -- line:SetColorTexture(1, 1, 1, .25) end -- L.StripTextures(self) ReskinFrame(self) self.styled = true end end) end rSkin:RegisterSkin("MerInspect", MerInspect)