Add hide combat glow on unit frames

This commit is contained in:
Hao Tran 2024-03-09 00:42:14 -05:00
parent ca6c750f6a
commit ec60bbc390

View File

@ -2,10 +2,20 @@
-- # MODULES > HIDE TEXT -- # MODULES > HIDE TEXT
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
PlayerFrame:HookScript("OnEvent", function() local hiddenFrame = CreateFrame('Frame')
hiddenFrame:Hide()
PlayerFrame:HookScript('OnEvent', function()
-- hide player damage and healing received text -- hide player damage and healing received text
PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HitIndicator.HitText:Hide() PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HitIndicator.HitText:Hide()
-- hide combat glow on unit frames
PlayerFrame.PlayerFrameContainer.FrameFlash:SetParent(hiddenFrame)
TargetFrame.TargetFrameContainer.Flash:SetParent(hiddenFrame)
FocusFrame.TargetFrameContainer.Flash:SetParent(hiddenFrame)
PetFrameFlash:SetParent(hiddenFrame)
PetAttackModeTexture:SetParent(hiddenFrame)
-- hide reputation background -- hide reputation background
TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide() TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide() FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()