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:
Lua Code:
and this one, which I use in CyrodiilAlert to display all the messages: Lua Code:
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! |
Quote:
Code:
CENTER_SCREEN_ANNOUNCE.displayQueue As for GetPriority() , it changed a bit since they changed from using an event code directly to a seperate set of constants. Before you would use Code:
CENTER_SCREEN_ANNOUNCE:GetPriority(EVENT_KEEP_GATE_STATE_CHANGED) Code:
CENTER_SCREEN_ANNOUNCE:GetPriority(CENTER_SCREEN_ANNOUNCE_TYPE_KEEP_GATE_CHANGED) You can still use AddMessage(...) as it became a wrapper function for the new code. It doesn't lose functionality. Now....depending on what exactly you want to do there might be more changes relevant to you. |
I just tried a simple thing in the chat box and nothing happened, so I'm not sure what I did wrong.
Lua Code:
Edit: Ah, hold on, I think maybe they changed the names of the categories.... So far I think CSA_CATEGORY_LARGE_TEXT has replaced CSA_EVENT_COMBINED_TEXT, but I'm not sure about the others. Edit 2: OK I think I've worked it out. CSA_EVENT_COMBINED_TEXT and CSA_EVENT_LARGE_TEXT have been merged into CSA_CATEGORY_LARGE_TEXT, CSA_EVENT_SMALL_TEXT has become CSA_CATEGORY_SMALL_TEXT, and as stated in the patch notes there's CSA_CATEGORY_MAJOR_TEXT and CSA_CATEGORY_COUNTDOWN_TEXT which are new. Anything I've missed? |
Hey,
There is a new API to create center screen announcements. This is how I use it in my Thieves Troves Marker addon: Lua Code:
List of categories: Lua Code:
List of SCATypes is in the doc attached in this post: https://forums.elderscrollsonline.co...change-log-pts Here are useful CENTER_SCREEN_ANNOUNCE public functions: Lua Code:
ZO_CenterScreenMessageParams functions: Lua Code:
You can also add your types with priorities with this function: Lua Code:
Hope this will be useful :) |
That's great, thanks! I'll push a minimal-changes version of CA today, and then work on replacing the legacy function with the new ones later on.
|
All times are GMT -6. The time now is 06:50 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI