Page 1 of 1

Format Alert Messages?

Posted: Fri Jan 08, 2021 11:42 pm
by digiwombat
I've dug through the source, but I can't seem to find any way to intercept DialogueManager.ShowAlert() in the way I can with conversation lines and OnConversationLine for additional filtering/formatting.

I've written a script to handle it easily enough at the moment, but it might be a nice addition that mirrors other standard conventions of the package, assuming there's not already a way to do it that I missed.

Re: Format Alert Messages?

Posted: Sat Jan 09, 2021 8:40 am
by Tony Li
Good idea. I'll add that.

In the meantime, you can subclass StandardDialogueUI and override its ShowAlert() method.

Re: Format Alert Messages?

Posted: Sat Jan 09, 2021 9:25 am
by digiwombat
Thanks.

At the moment pretty much all my alerts are being handled outside of conversations so I just grab the string from the TextTable and format it before doing the alert. Saves having to re-setup the StandardDialogueUI inspector fields which is a strategic form of laziness. Haha.