View Single Post
05-11-14, 12:30 AM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Upon further reading in the default UI code, you probably want UPDATE_BATTLEFIELD_STATUS after all, but you need to do an additional check to see whether the event is relevant:

Code:
f:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
f:SetScript("OnEvent", function(self, event, index)
	 if GetBattlefieldStatus(index) == "confirm" then
		  t = PROPOSAL_DURATION
		  self:Show()
	 else
		  self:Hide()
	 end
end)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote