Thread Tools Display Modes
01/02/24, 07:04 PM   #1
Tazmyr
AddOn Author - Click to view addons
Join Date: Aug 2020
Posts: 8
Can I send a message to the in-game alerts field?

Would like to send an alert/error message to the in-game alerts box (not chat).
Can it be done? Function to do so?

Thanks!
Taz
  Reply With Quote
01/03/24, 08:02 AM   #2
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2021
Posts: 17
Do you mean the messages that pop up centre screen, or the ones that pop up in the top right of the screen, or the notifications window, or something else?
  Reply With Quote
01/03/24, 12:04 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Alerts / Announcements are the messages shown on top middle or right of the screen:
https://wiki.esoui.com/How_to_show_announcements

Notifications is the notifications list that shows if you press N or click the icon above your chat:
https://www.esoui.com/downloads/info...fications.html

Last edited by Baertram : 01/03/24 at 12:07 PM.
  Reply With Quote
01/04/24, 07:08 PM   #4
Tazmyr
AddOn Author - Click to view addons
Join Date: Aug 2020
Posts: 8
Top right ... thanks ...

Missed mentioning that detail, but Top-Right was my intent.

Thanks @Baertram, but your link talks about Center screen messages and Notifications. How do I post to the Top-Right box message?
TIA!

Last edited by Tazmyr : 01/04/24 at 08:56 PM.
  Reply With Quote
01/04/24, 11:04 PM   #5
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
For messages in the top right of the screen, use this:
ZO_Alert(category, soundId, message, ...)... is strformat arguments.
I generally use ERROR for category and SOUNDS.GENERAL_ALERT_ERROR for the sound, but you can experiment with other stuff

https://github.com/esoui/esoui/blob/c9f8a88114130077403f2c6bb82684f99db06a97/esoui/ingame/alerttext/alerttext_shared.lua#L99
  Reply With Quote
01/05/24, 04:34 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Oh sorry, I thought it was in the WIKI already too!
Thanks Dol.

I'll add it to the Wiki:

Last edited by Baertram : 01/05/24 at 04:37 AM.
  Reply With Quote
01/06/24, 01:54 PM   #7
Tazmyr
AddOn Author - Click to view addons
Join Date: Aug 2020
Posts: 8
Oh snap, thanks Dolgubon and Baertram, you're are the best!
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Can I send a message to the in-game alerts field?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off