Different alert panels?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Different alert panels?

Post by Strook »

Hello! Is it possible to have multiple Alert panels, like its the case for Dialogue panels
?
I would like to be able to have multiple Alert panels skins, and choose one specifically when I call an alert (using the dialogue system trigger > Action > ShowAlert).

Thank you!
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Different alert panels?

Post by Tony Li »

Hi,

You can do it with a little code. Make a subclass of StandardDialogueUI, and override the ShowAlert and HideAlert methods to show and hide the message in a specific panel. You could include the panel number in the alert text, maybe something like:

Code: Select all

DialogueManager.ShowAlert("[panel=2] I'm in panel 2!");
Then in your overridden ShowAlert() method, remove "[panel=2]" from the text and show the resulting text in your alert panel #2.
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Re: Different alert panels?

Post by Strook »

that's awesome, thanks a lot I will try this !!
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
Post Reply