Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inCombatAlpha = 1
- local outCombatAlpha = 0.3
- local frames = {
- TukuiInfoRight,
- TukuiCubeLeft,
- TukuiCubeRight,
- TukuiInfoLeftLineVertical,
- TukuiInfoRightLineVertcal,
- TukuiLineToABRight,
- TukuiLineToABLeft,
- TukuiBar1,
- TukuiBar2,
- Tukuibar3,
- Tukuibar4,
- Tukuibar5,
- Tukuibar6,
- Tukuibar7,
- Recount_MainWindow,
- }
- local addon = CreateFrame('Frame')
- addon:RegisterEvent('PLAYER_REGEN_ENABLED')
- addon:RegisterEvent('PLAYER_REGEN_DISABLED')
- addon:SetScript('OnEvent', function()
- for _, frame in pairs(frames) do
- if(InCombatLockdown()) then
- frame:SetAlpha(inCombatAlpha)
- else
- frame:SetAlpha(outCombatAlpha)
- end
- end
- end)
Add Comment
Please, Sign In to add comment