View Single Post
05/17/17, 12:02 PM   #1
Enodoc
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 52
CENTER_SCREEN_ANNOUNCE changes

Does anyone have a full breakdown of changes for CENTER_SCREEN_ANNOUNCE? I use three related functions from it, and I'm not sure how they will be affected.

These two, which I nabbed (with permission) from No, Thank You! to disable certain AvA messages in Cyrodiil:
Lua Code:
  1. local messageQueue = CENTER_SCREEN_ANNOUNCE.m_displayQueue
Lua Code:
  1. local priority = CENTER_SCREEN_ANNOUNCE:GetPriority(avaEvents[eventIndex])

and this one, which I use in CyrodiilAlert to display all the messages:
Lua Code:
  1. CENTER_SCREEN_ANNOUNCE:AddMessage(0, category, sound, message, message2, nil, nil, nil, nil, delay_ms, nil)

The last one will almost certainly be affected by CENTER_SCREEN_ANNOUNCE:CreateMessageParams(type, sounds). but I don't know what's needed instead for all the parameters I have, and then to display the message afterwards.

I also don't know whether the changes to priority will affect anything, and what's the difference between a TYPE and a CATEGORY?

Thanks!
  Reply With Quote