Page 1 of 1
UI Hud sometines doesn't refresh
Posted: Mon Sep 24, 2018 11:02 am
by GorkaGames
Hi,
My UI Hub sometimes doesn't refresh with the new information that I put on the quest states, on the Hud text (Active or true), is this something normal? Can we on the meantine force to refresh with some directive?
Thanks.
Re: UI Hud sometines doesn't refresh
Posted: Mon Sep 24, 2018 11:36 am
by Tony Li
Hi,
GorkaGames wrote: ↑Mon Sep 24, 2018 11:02 amMy UI Hub sometimes doesn't refresh with the new information that I put on the quest states, on the Hud text (Active or true), is this something normal?
No, it's not normal. How are you changing it?
GorkaGames wrote: ↑Mon Sep 24, 2018 11:02 amCan we on the meantine force to refresh with some directive?
Yes:
Code: Select all
QuestMachineMessages.RefreshUIs(null);
The QuestJournal component listens for these messages: Refresh UIs, Quest State Changed, and Quest Counter Changed. When it receives those messages, it updates the HUD and the journal UI if it's open.
Re: UI Hud sometines doesn't refresh
Posted: Mon Sep 24, 2018 12:57 pm
by GorkaGames
It happens to me also in one case (no more for now) when we have a "Quest State Changed" (from inactive to active should get refreshed) and only refresh when the counter gets refreshed.
Re: UI Hud sometines doesn't refresh
Posted: Mon Sep 24, 2018 2:10 pm
by Tony Li
If you can reproduce the issue, please let me know the steps to reproduce it.