Skip to content

Instantly share code, notes, and snippets.

Created February 26, 2010 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6323ba8bb2a9a4365413 to your computer and use it in GitHub Desktop.
Save anonymous/6323ba8bb2a9a4365413 to your computer and use it in GitHub Desktop.
stateMonitor:SetFrameRef("partyHeader", headerFrame)
stateMonitor:WrapScript(stateMonitor, "OnAttributeChanged", [[
if( name ~= "state-raidmonitor" and name ~= "partydisabled" and name ~= "hideanyraid" and name ~= "hidesemiraid" ) then return end
if( self:GetAttribute("partyDisabled") ) then return end
if( self:GetAttribute("hideAnyRaid") and ( self:GetAttribute("state-raidmonitor") == "raid1" or self:GetAttribute("state-raidmonitor") == "raid6" ) ) then
self:GetFrameRef("partyHeader"):Hide()
elseif( self:GetAttribute("hideSemiRaid") and self:GetAttribute("state-raidmonitor") == "raid6" ) then
self:GetFrameRef("partyHeader"):Hide()
else
self:GetFrameRef("partyHeader"):Show()
end
]])
RegisterStateDriver(stateMonitor, "raidmonitor", "[target=raid6, exists] raid6; [target=raid1, exists] raid1; none")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment