Format Alert Messages?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
digiwombat
Posts: 50
Joined: Sun Jun 16, 2019 4:59 am

Format Alert Messages?

Post 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.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Format Alert Messages?

Post by Tony Li »

Good idea. I'll add that.

In the meantime, you can subclass StandardDialogueUI and override its ShowAlert() method.
User avatar
digiwombat
Posts: 50
Joined: Sun Jun 16, 2019 4:59 am

Re: Format Alert Messages?

Post 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.
Post Reply