Add dark unit frames

This commit is contained in:
Hao Tran 2024-03-07 22:22:54 -05:00
parent 90e9f25766
commit c9e8da8233

View File

@ -5,6 +5,31 @@
local f = CreateFrame('Frame') local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_ENTERING_WORLD') f:RegisterEvent('PLAYER_ENTERING_WORLD')
f:SetScript('OnEvent', function(self, event) f:SetScript('OnEvent', function(self, event)
for i, v in pairs ({
-- player frame
PlayerFrame.PlayerFrameContainer.FrameTexture,
PlayerFrame.PlayerFrameContainer.AlternatePowerFrameTexture,
PlayerFrame.PlayerFrameContainer.VehicleFrameTexture,
PlayerCastingBarFrame.Border,
PetFrameTexture,
-- target frame
TargetFrame.TargetFrameContainer.FrameTexture,
TargetFrameSpellBar.Border,
TargetFrameToT.FrameTexture,
-- focus frame
FocusFrame.TargetFrameContainer.FrameTexture,
FocusFrameSpellBar.Border,
FocusFrameToT.FrameTexture,
}) do
v:SetVertexColor(0.1, 0.1, 0.1, 1)
end
TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
for i, v in pairs ({ for i, v in pairs ({
-- paladin holy power -- paladin holy power
PaladinPowerBarFrame.Background, -- no holy power PaladinPowerBarFrame.Background, -- no holy power