fungus icon indicating copy to clipboard operation
fungus copied to clipboard

Writer.Paused auto complete the rest of texts when resumed

Open breadnone opened this issue 3 years ago • 3 comments

Describe the bug Ideally, after pausing in the middle of the sentence, when resumed, it should continue to where it was left of

To Reproduce Trigger the pause with this: GetComponent<Writer>().Paused = true;

then change it's bool to "false" to resume. It can be triggered with Invoke as well

Then describe the steps to reproduce the behavior:-->

  1. Get the component, set the writer to Paused = true
  2. Then resume the writer by setting the bool to false

Expected behavior As the "Paused" name implies, it should resume the rest of the sentence/texts with the same type writer effect

Screenshots The bug can be seen in the video below

https://user-images.githubusercontent.com/64100867/103435124-1d1ba880-4c3d-11eb-89f0-6b4230c813a4.mp4

Versions & Platform (please complete the following information):

  • 3.13x

breadnone avatar Jan 01 '21 07:01 breadnone

This Pause feature has a ton possible use cases. For example, one can make a Skits (Mini conversation on top of main conversation, like in JRPG) while keeping in check the main conversation/flow.

I've noticed users on forum & discord that they used to disable the DialogInput for pause, which I don't think should not be used in terms of pausing the game as it served a different purposes

breadnone avatar Jan 06 '21 05:01 breadnone

Having looked over the existing usage of this property, it only exists for use by external code, that Fungus doesn't control. Needs a refactor and tests added.

stevehalliwell avatar Jun 19 '21 22:06 stevehalliwell

At some point I managed to fix this issue a while ago, the thing is it's more of a workaround and quite ugly :)

breadnone avatar Jun 20 '21 09:06 breadnone