ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Can I send a message to the in-game alerts field? (https://www.esoui.com/forums/showthread.php?t=10772)

Tazmyr 01/02/24 07:04 PM

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

FlatBadger 01/03/24 08:02 AM

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?

Baertram 01/03/24 12:04 PM

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

Tazmyr 01/04/24 07:08 PM

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!

Dolgubon 01/04/24 11:04 PM

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

Baertram 01/05/24 04:34 AM

Oh sorry, I thought it was in the WIKI already too!
Thanks Dol.

I'll add it to the Wiki:

Tazmyr 01/06/24 01:54 PM

Oh snap, thanks Dolgubon and Baertram, you're are the best!


All times are GMT -6. The time now is 11:24 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI