From bc2ca75db4778524aeb099f1c2d57f71777fa5c5 Mon Sep 17 00:00:00 2001 From: D4KiR Date: Wed, 11 Oct 2023 06:58:00 +0200 Subject: [PATCH] v0.3.28 --- DarkMode.toc | 4 ++-- DarkMode_TBC.toc | 2 +- DarkMode_Vanilla.toc | 2 +- DarkMode_Wrath.toc | 4 ++-- core.lua | 17 +++++++++++++---- data.lua | 2 +- settings.lua | 2 +- 7 files changed, 21 insertions(+), 12 deletions(-) diff --git a/DarkMode.toc b/DarkMode.toc index f589fd9..eb2d7ab 100644 --- a/DarkMode.toc +++ b/DarkMode.toc @@ -1,9 +1,9 @@ ## Interface-Classic: 11404 ## Interface-BCC: 20504 -## Interface-Wrath: 30402 +## Interface-Wrath: 30403 ## Interface: 100107 -## Version: 0.3.27 +## Version: 0.3.28 ## Title: DarkMode by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Improve Any Ui or Frame ## Author: D4KiR diff --git a/DarkMode_TBC.toc b/DarkMode_TBC.toc index f045ebc..f4f8a3b 100644 --- a/DarkMode_TBC.toc +++ b/DarkMode_TBC.toc @@ -1,5 +1,5 @@ ## Interface: 20504 -## Version: 0.3.27 +## Version: 0.3.28 ## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Improve Any Ui or Frame ## Author: D4KiR diff --git a/DarkMode_Vanilla.toc b/DarkMode_Vanilla.toc index 9d734ed..600c4f6 100644 --- a/DarkMode_Vanilla.toc +++ b/DarkMode_Vanilla.toc @@ -1,5 +1,5 @@ ## Interface: 11404 -## Version: 0.3.27 +## Version: 0.3.28 ## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Improve Any Ui or Frame ## Author: D4KiR diff --git a/DarkMode_Wrath.toc b/DarkMode_Wrath.toc index 0c8581f..8faedcc 100644 --- a/DarkMode_Wrath.toc +++ b/DarkMode_Wrath.toc @@ -1,5 +1,5 @@ -## Interface: 30402 -## Version: 0.3.27 +## Interface: 30403 +## Version: 0.3.28 ## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Improve Any Ui or Frame ## Author: D4KiR diff --git a/core.lua b/core.lua index 80a59e5..6f7c7d4 100644 --- a/core.lua +++ b/core.lua @@ -584,7 +584,7 @@ function DarkMode:SearchUi() local max = 12 --[[ Bar Addons ]] if name == "BT4Button" or name == "DominosActionButton" then - max = 120 + max = 200 end for x = 1, max do @@ -638,9 +638,18 @@ function DarkMode:SearchUi() end end elseif index == "Minimap" or index == "Artworks" or index == "Chat" or index == "Castbar" then - for i, v in pairs(tab) do - if v ~= "MainMenuBarBackpackButtonNormalTexture" or DarkMode:GetWoWBuild() ~= "RETAIL" then - DarkMode:FindTexturesByName(v, "ui") + for ind, name in pairs(tab) do + if index == "Artworks" and name == "BT4BarBlizzardArt.nineSliceParent" then + local frame = DarkMode:GetFrame(name) + for i, v in pairs({frame:GetChildren()}) do + if i == 1 then + DarkMode:FindTextures(v, "ui") -- Bartender Border in BlizzardArt + end + end + end + + if name ~= "MainMenuBarBackpackButtonNormalTexture" or DarkMode:GetWoWBuild() ~= "RETAIL" then + DarkMode:FindTexturesByName(name, "ui") end end elseif index == "Gryphons" then diff --git a/data.lua b/data.lua index d291aa4..a950790 100644 --- a/data.lua +++ b/data.lua @@ -91,7 +91,7 @@ local DMUi = { ["Minimap"] = {"MinimapBorder", "MinimapBorderTop", "TimeManagerClockButton", "MinimapCompassTexture", "MinimapCluster.BorderTop",}, ["UnitFrames"] = {"PlayerFrameTexture", "TargetFrameTextureFrameTexture", "FocusFrameTextureFrameTexture", "TargetFrameToTTextureFrameTexture", "PetFrameTexture", "PlayerFrame.PlayerFrameContainer.AlternatePowerFrameTexture", "PlayerFrame.PlayerFrameContainer.FrameTexture", "TargetFrame.TargetFrameContainer.FrameTexture", "FocusFrame.TargetFrameContainer.FrameTexture", "PartyMemberFrame1Texture", "PartyMemberFrame2Texture", "PartyMemberFrame3Texture", "PartyMemberFrame4Texture", "PartyFrame.MemberFrame1.Texture", "PartyFrame.MemberFrame2.Texture", "PartyFrame.MemberFrame3.Texture", "PartyFrame.MemberFrame4.Texture", "CompactRaidFrameContainerBorderFrame", "TargetFrameSpellBar", "FocusFrameSpellBar"}, ["Tooltips"] = {"GameTooltip.NineSlice", "ItemRefTooltip.NineSlice", "ShoppingTooltip1.NineSlice", "ShoppingTooltip2.NineSlice", "WhatsTrainingTooltip.NineSlice"}, - ["Artworks"] = {"MainMenuBarTexture0", "MainMenuBarTexture1", "MainMenuBarTexture2", "MainMenuBarTexture3", "MainMenuExpBar", "ReputationWatchBar.StatusBar", "MainStatusTrackingBarContainer.BarFrameTexture", "SecondaryStatusTrackingBarContainer.BarFrameTexture", "MainMenuBarMaxLevelBar", "BT4BarBlizzardArt", "BlizzardArtLeftCap", "BlizzardArtRightCap", "CompactRaidFrameManager", "CharacterReagentBag0SlotNormalTexture", "CharacterBag0SlotNormalTexture", "CharacterBag1SlotNormalTexture", "CharacterBag2SlotNormalTexture", "CharacterBag3SlotNormalTexture", "MainMenuBarBackpackButtonNormalTexture"}, + ["Artworks"] = {"MainMenuBarTexture0", "MainMenuBarTexture1", "MainMenuBarTexture2", "MainMenuBarTexture3", "MainMenuExpBar", "ReputationWatchBar.StatusBar", "MainStatusTrackingBarContainer.BarFrameTexture", "SecondaryStatusTrackingBarContainer.BarFrameTexture", "MainMenuBarMaxLevelBar", "BT4BarBlizzardArt", "BT4BarBlizzardArt.nineSliceParent", "BlizzardArtLeftCap", "BlizzardArtRightCap", "CompactRaidFrameManager", "CharacterReagentBag0SlotNormalTexture", "CharacterBag0SlotNormalTexture", "CharacterBag1SlotNormalTexture", "CharacterBag2SlotNormalTexture", "CharacterBag3SlotNormalTexture", "MainMenuBarBackpackButtonNormalTexture"}, ["Gryphons"] = {"MA_LeftEndCap", "MA_RightEndCap", "MainMenuBar.EndCaps", "MainMenuBarLeftEndCap", "MainMenuBarRightEndCap"}, ["Chat"] = {"ChatFrame1Tab", "ChatFrame2Tab", "ChatFrame3Tab", "ChatFrame4Tab", "ChatFrame5Tab", "ChatFrame6Tab", "ChatFrame7Tab", "ChatFrame8Tab", "ChatFrame9Tab", "ChatFrame10Tab",}, ["Castbar"] = {"CastingBarFrame.Border"} diff --git a/settings.lua b/settings.lua index 00d56e0..6c78b4f 100644 --- a/settings.lua +++ b/settings.lua @@ -1,6 +1,6 @@ local _, DarkMode = ... local config = { - ["title"] = format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.3.27") + ["title"] = format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.3.28") } local searchStr = ""