[PLUGIN] SweetAlert2

  • Nandynho would it be possible to add text and background colors along with width and height to the features you can customize?

  • Phacanu it's complicated to create a custom system and leave it simple in C2. Maybe I'll take some time to try to think of something alone, but if you have any idea how to make it simple in Construct maybe I can put it.

    Cheers.

  • I will not update more in the post of Our versions become incompatible.

    [quote:12xhgjw3]

    New version 0.20 (Nov 21, 2017)

    • [+] Set style - Set a style on the control.
    • [+] Progress steps - Show alert with progress steps.
    • [#] Sweet Alert II - Updated to latest version.

    Download

  • while user finish input the value, the return value always comes with "" at front and back ?

    example : user input value = hello world , but the return value = "hello world"

    how do i remove this special char "" ?

  • dannykln

    tokenat(Alert.GetLastValue, 1, """")
    tokenat(Alert.GetLastValue, 3, """")
    tokenat(Alert.GetLastValue, 5, """")
    
    replace(Alert.GetLastValue, """", "")
    replace(Alert.GetLastValueAt(0), """", "")
    [/code:3qpxnhjg]
  • dannykln

    > tokenat(Alert.GetLastValue, 1, """")
    tokenat(Alert.GetLastValue, 3, """")
    tokenat(Alert.GetLastValue, 5, """")
    
    replace(Alert.GetLastValue, """", "")
    replace(Alert.GetLastValueAt(0), """", "")
    [/code:3l98kwdg]
    

    thanks!

  • Hi Nandynho!

    Do you know why there is no "Copy" and "Paste" option in SweetAlert inputs? This option simply doesn't appear!

    BTW, do you recommend switching to your new Sweet Alert II Plugin? It looks amazing!

  • Sweet Alert II it's the latest version.

    "Copy" and "Paste" with the right mouse button?

  • Hi Nandynho! How are you going?

    Sorry that I answer that late, I've been very busy... Yes, if you right click the input, nothing happens, no contextmenu is shown at all! This happens in Chrome and NW.js preview as well as in Android apk.

    I guess it's this part of the code in "sweetalert2.js":

      document.body.appendChild(sweetContainer);
      $("#sweetalert2").bind('contextmenu', function(e){ return false; });
    [/code:1nntjdbl]
    but I don't know how to change this.
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ChesVCF you're right!

    change this line:

    $("#sweetalert2").bind('contextmenu', function(e){ return false; });[/code:18rm1xxj]
    for:
    [code:18rm1xxj]//$("#sweetalert2").bind('contextmenu', function(e){ return false; });[/code:18rm1xxj]
    
    [url=https://www.scirra.com/forum/viewtopic.php?f=153&t=198020]last version[/url]
  • This is a brilliant plugin, just wondering if there is a possibility to add more buttons to do custom things. See image.

    image.ibb.co/dLgAeo/dialog.jpg

  • Awesome Plugin!

    One question though... can we change the font?

  • anyone knows how to use a different font? if i change the source files of plugin with my font name it works, but when i export it it set backs to default arial font!

    Please help someone...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)