Toggle Typewriter Effect & Pause Dialogue when in Pause

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Toggle Typewriter Effect & Pause Dialogue when in Pause

Post by soniclinkerman »

Hey,

Is there a way where when I pause the game, I'm able to pause the dialogue system and typewriter effect?

When I pause, the dialogue continues when I push Z and that's not what I want.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Toggle Typewriter Effect & Pause Dialogue when in Pause

Post by Tony Li »

soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Re: Toggle Typewriter Effect & Pause Dialogue when in Pause

Post by soniclinkerman »

Thanks for the wonderful guide. I simply just added

Code: Select all

 PixelCrushers.UIPanel.monitorSelection = true; // Allow dialogue UI to steal back input focus again.
            PixelCrushers.UIButtonKeyTrigger.monitorInput = true; // Re-enable hotkeys.
to when it wasn't paused and

Code: Select all

  PixelCrushers.UIPanel.monitorSelection = false; // Don't allow dialogue UI to steal back input focus.
            PixelCrushers.UIButtonKeyTrigger.monitorInput = false; // Disable hotkeys.
When it IS paused and changed the "Other Settings" to Gameplay and it seems to work! Thank you
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Toggle Typewriter Effect & Pause Dialogue when in Pause

Post by Tony Li »

Great! Glad to help.
Post Reply