
Originally Posted by
'zanthor',index.php?page=Thread&postID=105821#post 105821
Check for the "You are following blah" frame being visible. Don't know it's name, but it's the yellow text in the middle of your screen. This is the absolute most reliable way I found to handle this.
So after working on other higher priority addons, I've recently came back to this...
In response to zanthor's comment, I went and dug up some wow's ui code
The following is in ZoneText.lua
PHP Code:
function AutoFollowStatus_OnEvent(self, event, ...)
if ( event == "AUTOFOLLOW_BEGIN" ) then
local arg1 = ...;
self.unit = arg1;
self.fadeTime = nil;
self:SetAlpha(1.0);
AutoFollowStatusText:SetFormattedText(AUTOFOLLOWSTART,self.unit);
self:Show();
end
if ( event == "AUTOFOLLOW_END" ) then
self.fadeTime = AUTOFOLLOW_STATUS_FADETIME;
AutoFollowStatusText:SetFormattedText(AUTOFOLLOWSTOP,self.unit);
self:Show();
end
if ( event == "PLAYER_ENTERING_WORLD" ) then
self:Hide();
end
end
As you can see, the autfollow status frame is also hidden by the "PLAYER_ENTERING_WORLD" event.
Perhaps this is the implied AUTOFOLLOW_END that's causing inconsistencies?
Connect With Us