Coder Social home page Coder Social logo

Comments (4)

Wavesonics avatar Wavesonics commented on June 2, 2024

In the demo code in this repo, the Blue guy's dialog exhibits this behavior.

from blocking-dialog-box.

jacopofar avatar jacopofar commented on June 2, 2024

Yes, in the demo for some of them I invoke manually hide_box() to avoid the extra click. The basic problem is that I don't want the dialogue to run in background while the player sees an input box or a selection.

I don't know exactly how to avoid it, the dialogue element sends a signal AND waits for input every time there's a break, a possible solution I thought about is to add a non-blocking break, something like [signal blabla] that unlike [break blabla] generates the signal but doesn't wait for the block.

The alternative is to do like I do now, and generate some "unblock" command in the caller (I don't like it tbh, the goal of the addon is to not have the developer worry about these details). Or to have some way to connect the three elements so that they maintain a state of what's already open and if you insert an input or choose an element from a list and a dialogue was running it also closes its break.

from blocking-dialog-box.

Wavesonics avatar Wavesonics commented on June 2, 2024

so I realized i had an extra [break] at the end of my text, so like:
"Line 1\n[break]Line 2[break]"
Just removing the final break made it close without the extra click:
"Line 1\n[break]Line 2"

from blocking-dialog-box.

jacopofar avatar jacopofar commented on June 2, 2024

Oh nice! I think now that I merged your PR adding the closing signal without the need of a [break] tag this can be closed. Thank you!

from blocking-dialog-box.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.