I ran into another problem when I tried to make my frames open up a menu when right clicked on. Everything works except the option "Set Focus", I get a popup error saying something about an action was blocked..? I'm using this code:
Ugh xml,.. that looks really complicated, why can't I just create the party frames beforehand and then fill in the unit info when it's available (like joining a party)?
Actually, I just found this on wowwikki http://www.wowwiki.com/SecureStateDriver
Could I perhaps use the example there and just RegisterUnitWatch() my partyframes so they will show/hide by themselves?
something like this
local MyPartyFrame1 = CreateFrame("BUTTON", "MyParty1", UIParent, "SecureUnitButtonTemplate")
-- do frame layout here
local MyPartyFrame2 = CreateFrame etc, etc
-- etc etc
Ok I'm definitely doing something wrong then since I have never even heard of SecurePartyHeaderTemplate, google didn't give much information either. I guess this is a template I should use instead of SecureActionButtonTemplate that I'm using currently?
Unit frames automatically show or hide themselves based on whether the unit they're set to watch exists, so even if you hide them, they'll reappear. If you hide their parent, however, it doesn't matter if they're shown or hidden, because they don't do anything with the visibility of their parent.
Wait, what? How do you know how my unitframes work? :p I didn't even post the code on how I show/hide them. Also, why would I wanna parent them all to 1 frame? hiding it would result in every child frame getting hidden as well, what if I want to hide/show them individually? As in people leaving/joining your group.
Hi, I was wondering how I should hide (and show) my custom made unit frames, specifically the party frames, while being in combat? At the moment I just do a frame:Hide() when party members change. This works while out of combat but in combat its causing taint and generating an Interface action failed-error message. How am I supposed to hide my frames? :confused: