Originally Posted by Quokka
If I corect I read something a while back about Skada & Minimap swapping in combat. Does anyone still have info on that.
I could not find it. And would like to hide my minimap in combat and show skada thread instead.
Even one more, ist there something linke tinydps that only shows thread?
|
Code:
local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_REGEN_ENABLED')
f:RegisterEvent('PLAYER_REGEN_DISABLED')
f:SetScript('OnEvent', function()
if event == 'PLAYER_REGEN_DISABLED' then
Minimap:Hide()
SkadasFrameNameHere:Show()
elseif event == 'PLAYER_REGEN_ENABLED' then
Minimap:Show()
SkadasFrameNameHere:Hide()
end
end)
EDIT: Posted way too fast, change the red lines yourself as I don't know what Skadas main window is called. Put this in any addon and you should be set to go.