Page 1 of 1
Deactivate on Hidden not respected at startup
Posted: Fri Oct 22, 2021 8:52 pm
by VoodooDetective
I just noticed that all our Subtitle panels deactivate when the game starts. I think it's this code doing it:
DialogueSystemController.WarmUpConversationController()
Code: Select all
var standardDialogueUI = abstractDialogueUI as StandardDialogueUI;
if (standardDialogueUI != null) standardDialogueUI.conversationUIElements.HideImmediate(); <---
controller.Close();
Re: Deactivate on Hidden not respected at startup
Posted: Fri Oct 22, 2021 9:51 pm
by Tony Li
Is that an issue? In version 2.2.22, I'll add an option to not hide the UI when running the preload/warmup routine.
Re: Deactivate on Hidden not respected at startup
Posted: Fri Oct 22, 2021 9:53 pm
by VoodooDetective
It's not a big deal, just something I noticed. It would be great to have that option. I'm in the middle of optimization and have found that disabling complex UI can be very expensive on re-enable. Better to leave it in memory sometimes.
Re: Deactivate on Hidden not respected at startup
Posted: Fri Oct 22, 2021 10:10 pm
by Tony Li
Okay, I'll add an option.
BTW, if relayout speeds are a concern, you could override HideImmediate to disable the Canvas component instead. You'll also want to override Open to re-enable the Canvas in that case.
Re: Deactivate on Hidden not respected at startup
Posted: Fri Oct 22, 2021 11:54 pm
by VoodooDetective
Thanks very much, and will do! Thanks for the suggestion!
Re: Deactivate on Hidden not respected at startup
Posted: Tue Nov 02, 2021 7:00 pm
by VoodooDetective
Hey there, sorry to bug you again. I just upgraded to 2.2.22 and when I checked "Don't Hide Immediate During Warmup" it still closes all the UI. Is there some extra step to making that work?
I've also got Warmup set to "On". When I set it to "Extra" it leaves only one subtitle menu open, and the rest closed. If I set it to "Off" then all the panels are still disabled on startup.
Re: Deactivate on Hidden not respected at startup
Posted: Tue Nov 02, 2021 8:29 pm
by Tony Li
Hi,
Try setting it to "Off". Then inspect the dialogue UI's StandardDialogueUI component and tick Conversation UI Elements > Don't Deactivate Main Panel.
If you also need the subtitle panels and/or response menu panels to stay open, let me know. That'll require an update.
Re: Deactivate on Hidden not respected at startup
Posted: Tue Nov 02, 2021 8:41 pm
by VoodooDetective
Huh, weird! My DialogueUI says that checkbox it ticked. I tried setting the warmup to off and have the same result. I don't need them to remain open, but to not deactivate on startup. So remain closed, but don't deactivate.
It's probably not a huge deal, it just saves the initial UpdateBatches() from happening during gameplay. I'm working on optimizations at the moment.
Re: Deactivate on Hidden not respected at startup
Posted: Tue Nov 02, 2021 9:09 pm
by Tony Li
Got it. Then if you set warmup to On, or even Extra, and tick Don't Deactivate Main Panel, it should work.