diff --git a/rSkin/modules/MerInspect.lua b/rSkin/modules/MerInspect.lua deleted file mode 100644 index 249e39e..0000000 --- a/rSkin/modules/MerInspect.lua +++ /dev/null @@ -1,66 +0,0 @@ -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) \ No newline at end of file diff --git a/rSkin/modules/ThreatClassic2.lua b/rSkin/modules/ThreatClassic2.lua deleted file mode 100644 index 95c6417..0000000 --- a/rSkin/modules/ThreatClassic2.lua +++ /dev/null @@ -1,75 +0,0 @@ -local A, L = ... - -local function ReskinStatusBar(self) - self:SetBackdrop(nil) - self.SetBackdrop = L.Dummy - - local backdrop = self.edgeBackdrop or self.backdrop - if backdrop then - backdrop:SetBackdrop(nil) - backdrop.SetBackdrop = L.Dummy - end -end - -local function DelayFunc() - local frame = _G.ThreatClassic2BarFrame - if not frame then return end - - local bg = L.CreateBackdrop(frame) - if frame.header:IsShown() then - bg:SetPoint("TOPLEFT", -oUF_SimpleConfig.colors.bgMultiplier, 18) - end - - local frameBg = frame.bg - if frameBg then - frameBg:SetColorTexture(0, 0, 0, 0) - frameBg:SetVertexColor(0, 0, 0, 0) - frameBg.SetVertexColor = L.Dummy - end - - local header = frame.header - if header then - ReskinStatusBar(header) - header:SetStatusBarColor(0, 0, 0, 0) - header.SetStatusBarColor = L.Dummy - header.text:SetPoint("LEFT", header, 4, 0) - end - - for _, child in pairs {frame:GetChildren()} do - if child:GetObjectType() == "StatusBar" and child.bg and child.val then - ReskinStatusBar(child) - child.bg:SetVertexColor(0, 0, 0, 0) - child.bg.SetVertexColor = L.Dummy - end - end -end - -function ThreatClassic2() - if not IsAddOnLoaded("ThreatClassic2") then return end - DelayFunc() -end - -rSkin:RegisterSkin("ThreatClassic2", ThreatClassic2) - --- local function LoadStyle(event, addon) --- if addon ~= "ThreatClassic2" then return end - --- local charKey = DB.MyName .. " - " .. DB.MyRealm --- ThreatClassic2DB = ThreatClassic2DB or {} --- ThreatClassic2DB["profileKeys"] = ThreatClassic2DB["profileKeys"] or {} --- ThreatClassic2DB["profileKeys"][charKey] = ThreatClassic2DB["profileKeys"][charKey] or charKey --- ThreatClassic2DB["profiles"] = ThreatClassic2DB["profiles"] or {} --- ThreatClassic2DB["profiles"][charKey] = ThreatClassic2DB["profiles"][charKey] or {} - --- local profileKey = ThreatClassic2DB["profileKeys"][charKey] --- local profile = profileKey and ThreatClassic2DB["profiles"][profileKey] --- if profile then --- profile.bar = profile.bar or {} --- profile.bar.texture = profile.bar.texture or "normTex" --- profile.bar.padding = 2 --- end - --- B:UnregisterEvent(event, loadStyle) --- end - --- B:RegisterEvent("ADDON_LOADED", loadStyle) \ No newline at end of file