Page 2 of 6
Re: Response Menu Sequence delay
Posted: Wed Jan 06, 2021 6:49 am
by fkkcloud
On no, like my previous reply says..
- I want to show PC subtitle when there is only 1 PC choice.
- I don't want to show PC subtitles when there is more than 1 PC choice.
Tick On for
Show PC Subtitiles During Line makes PC subtitle to be shown when there is only 1 PC choice
Tick Off for
Skip PC Subtitle After Response Menu makes PC subtitle to be not shown when there is more than 1 PC choice
- 화면 캡처 2021-01-06 035152.png (91.13 KiB) Viewed 833 times
So far so good. but the problem is.. this capture. When NPC is trying to say
"Maybe..". See how PC subtitle (of previous previous 1 choice
"I'm sure you'll unlock you...") briefly shows/dismiss and shows NPC subtitle? That is something I need help.
- 화면 캡처 2021-01-06 034653.png (730.3 KiB) Viewed 836 times
It only happens if when PC choice is going from 1 to multiple like the image capture below.
- 22.png (174.87 KiB) Viewed 836 times
I am calling below sequence commands for only multiple PC choices
"Amazing","Useful", "Sexy" btw - so there is delay after PC choice.
Code: Select all
SetDialoguePanel(false);
Continue()@2.1;
SetDialoguePanel(true)@2;
I also tried below but both shows previous previous PC subtitle
"I'm sure you'll unlock you..." briefly then dismiss then show NPC subtitle
"Maybe.."
Code: Select all
SetDialoguePanel(false);
Continue()@2;
required SetDialoguePanel(true)@2.1;
Re: Response Menu Sequence delay
Posted: Wed Jan 06, 2021 1:23 pm
by fkkcloud
bumping this for help
Re: Response Menu Sequence delay
Posted: Wed Jan 06, 2021 1:51 pm
by Tony Li
Hi,
I'm going to put together a test scene today. Sorry for the delay.
Re: Response Menu Sequence delay
Posted: Wed Jan 06, 2021 2:51 pm
by Tony Li
In the meantime, please check the PC subtitle panel's animator controller. SetDialoguePanel(false) may deactivate the GameObject. This will reset the Animator and cause it to start in the default state (the orange state in the animator controller). When you use SetDialoguePanel(true), the Animator may be briefly showing the default state before transitioning into the hidden state. Try to configure your animator controller so the default state makes the panel immediately hidden.
Re: Response Menu Sequence delay
Posted: Wed Jan 06, 2021 8:59 pm
by Tony Li
I put together this example scene, which seems to work the way you want.
DS_TestPCSubtitleSetDialoguePanel_2021-01-06.unitypackage
I suspect the problem may be the Animator's default animation. Make sure it immediately hides the panel.
If that doesn't help, can you please send me a reproduction scene or reproduction project?
Re: Response Menu Sequence delay
Posted: Wed Jan 06, 2021 11:19 pm
by fkkcloud
Hi,
As I was comparing my setting with your example,
As I set the Visibility of subtitle(Standard UI Subtitle Panel) to "Only During Content" - it now does not try to briefly show the old PC subtitle anymore on NPC subtitle but this is not the perfect solution for me.
I changed your example's PC subtitle(Standard UI Subtitle Panel) 's Visibility to "Until Suprerceded" - then it does have some problem with mine (briefly showing/hiding PC subtitle as NPC subtitle reveals).
Also, weird thing was that on "Maybe..." NPC subtitle, it was trying to trigger Show/Hide/Start(Hidden, Orange one in Animator) at all same time.
Here is the captured video.
(when it is on "Until Suprerceded").
Ultimately, this does not solve my problem as it hides the PC subtitle right after the continue for the next response menu especially for this specific case.
A player might want to see the pre-dialogue to choose the answer.
(Also, my Hidden state (which is set to Orange/default state of Animator Controller) is immediate 1 frame animation)
Re: Response Menu Sequence delay
Posted: Thu Jan 07, 2021 9:06 am
by Tony Li
fkkcloud wrote: ↑Wed Jan 06, 2021 11:19 pmI changed your example's PC subtitle(Standard UI Subtitle Panel) 's
Visibility to "
Until Suprerceded" - then
it does have some problem with mine (briefly showing/hiding PC subtitle as NPC subtitle reveals).
I see. I'm investigating now.
Re: Response Menu Sequence delay
Posted: Thu Jan 07, 2021 9:19 am
by fkkcloud
Tony Li wrote: ↑Thu Jan 07, 2021 9:06 am
fkkcloud wrote: ↑Wed Jan 06, 2021 11:19 pmI changed your example's PC subtitle(Standard UI Subtitle Panel) 's
Visibility to "
Until Suprerceded" - then
it does have some problem with mine (briefly showing/hiding PC subtitle as NPC subtitle reveals).
I see. I'm investigating now.
Thank you so much, If I can use the visibility of
Until Suprerceded and behave like as desired (I guess we now both see the desired outcome) then, I am good to go. (again, thanks for your awesome support. as always!)
Re: Response Menu Sequence delay
Posted: Thu Jan 07, 2021 10:41 am
by Tony Li
Hi,
Use this sequence:
Code: Select all
HidePanel(1);
SetDialoguePanel(false);
Continue()@2;
required SetDialoguePanel(true)@2
Here is the explanation:
When SetDialoguePanel(false) runs, it records which panels are visible. When the player chooses the menu option, the PC Subtitle Panel (panel #1) is visible. So SetDialoguePanel(false) records that it is visible.
When SetDialoguePAnel(true) runs, it shows all subtitle panels that it had previously recorded as visible.
If you hide panel 1 first, then SetDialoguePanel(false) will not record that it is visible. So SetDialoguePanel(true) will not show it.
Re: Response Menu Sequence delay
Posted: Sat Jan 09, 2021 12:39 pm
by fkkcloud
Hi,
Yes, it works now and I made that as a shortcut
Thank you for the help. (Sorry for late response I got carried away as it work!)
Just quick additional question,
Default Response Menu Sequence is only for player's response menu, right?
Default Player Sequence is for the single PC subtitle (like NPC's one), correct?
Also, is there any way to put a shortcut or set of Sequence command always attached to the Response Menu Sequence?
Because {{default}} is needed when I have extra sequence in the Response Menu's seqeunece command section.