API:ATF OnEvent

== Function ==
function ATF_OnEvent(this, event )
	if( AchievementTitleFrame:IsVisible() == false ) then
		return;
	end
	if( event == "PLAYER_TITLE_ID_CHANGED" or
	 event == "PLAYER_TITLE_FLAG_CHANGED" ) then
		ATF_UpdateTitle();
		ATF_TypeList_Update();
		ATF_TitleList_Update();
		return;
	end
end
Category:Functions