• 0

    posted a message on ClassTimer - Official thread
    I keep getting Classtimer:1 in my chat, which I assume is just output that you forgot to remove to make sure the sticky was running properly, then I got

    Interface\AddOns\ClassTimer\ClassTimer.lua:344: bad argument #3 to 'gsub' (string/function/table expected)

    I was trying to see if sticky works with lifebloom, I had to target them first before they would appear on the sticky(I use mouseover macro)

    edit:

    Got pretty annoyed at the spam, so finally decided to delete it myself, it's on line 503
    Posted in: General AddOns
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Quote from ugh »

    You check to see if GetNumRaidMembers() == (GetNumPartyMembers() + 1)


    Did that, finally added some output to see which conditions were being executed, and added

    party:SetAttribute("showRaid", false)


    But.. it doesn't actually do anything

    So then I just went over to p3limraid and just added the below code to the raid spawning code

    if((GetNumPartyMembers()+1) == GetNumRaidMembers()) then
            raid:Hide()
    elseif(GetNumRaidMembers() > 5) then
            raid:Show()
    end


    Now everything's working, but is there a better way of implementing it? Since that won't run if I leave bgs etc. But I could always just reload ui afterwards I guess.
    Posted in: Unit Frames
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Using p3lim's layout, I can't get it to make 5 man raids display as party, I can get them to display at the same time, but I can't seem to hide raid frames when theres 5 or less raid members. Here's the default code:

    local partyToggle = CreateFrame("Frame")
    if partyRaid then
    	partyToggle:SetScript("OnEvent", function(self)
    		if(InCombatLockdown()) then self:RegisterEvent("PLAYER_REGEN_ENABLED")
    		else self:UnregisterEvent("PLAYER_REGEN_ENABLED")
    			if(GetNumRaidMembers() > 0) then
    				party:SetAttribute("showRaid", true)
    				party:SetAttribute("showParty", false)
    			elseif(GetNumPartyMembers() > 0) then
    				party:SetAttribute("showRaid", false)
    				party:SetAttribute("showParty", true)
    			end
    		end
    	end)
    else
    	partyToggle:SetScript("OnEvent", function(self)
    		if(InCombatLockdown()) then self:RegisterEvent("PLAYER_REGEN_ENABLED")
    		else self:UnregisterEvent("PLAYER_REGEN_ENABLED")
    			if(HIDE_PARTY_INTERFACE=="1" and GetNumRaidMembers() > 0) then
    				party:Hide()
    			elseif(GetNumPartyMembers() > 0) then
    				party:SetAttribute("showParty", true)
    				party:Show()
    			end
    		end
    	end)
    end


    Anyone know how I might be able to do it?
    Posted in: Unit Frames
  • To post a comment, please or register a new account.