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.
Format Alert Messages?
Re: Format Alert Messages?
Good idea. I'll add that.
In the meantime, you can subclass StandardDialogueUI and override its ShowAlert() method.
In the meantime, you can subclass StandardDialogueUI and override its ShowAlert() method.
- digiwombat
- Posts: 50
- Joined: Sun Jun 16, 2019 4:59 am
Re: Format Alert Messages?
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.
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.