Page 1 of 1
Updating alert message while it is shown
Posted: Sat Jan 09, 2016 5:50 am
by mandi
Hi Tony,
is it possible to update the message shown via ShowAlert while it is still being displayed? I know I can increase the frequency check for alert value, but that does not seem to influence the message being displayed.
Best!
Re: Updating alert message while it is shown
Posted: Sat Jan 09, 2016 7:55 am
by Tony Li
Hi,
If you're using Unity UI, your dialogue UI's Alert section has a checkbox named
Queue Alerts. If this is ticked, the Dialogue System will wait for each alert message to be shown for its specified duration before showing the next alert message. If this is UNticked, new ShowAlerts will immediately replace current ones.
The check duration in the Dialogue Manager's Display Settings only affects the frequency at which the Dialogue System checks for assignments to the "Alert" Lua variable -- for example:
Code: Select all
Variable["Alert"] = "Hello, world."
If that doesn't help, can you please give me more information about how you're triggering/invoking ShowAlert, and what kind of UI you're using?
Re: Updating alert message while it is shown
Posted: Mon Jan 11, 2016 9:53 am
by mandi
Hi Tony,
thank you very much, I will let you know if I have more questions!
Best