View Single Post
08-19-10, 09:55 AM   #3111
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Originally Posted by Quokka View Post
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.
__________________
All I see is strobe lights blinding me in my hindsight.

Last edited by Wimpface : 08-19-10 at 09:57 AM.