Home / Topic / Undo function/button

Undo function/button

Home Kwiksher Forums Kwik4 Undo function/button

Viewing 6 posts - 1 through 6 (of 6 total)
  • Yamamoto
    Keymaster
    #85792

    >The undo button only works if i after choosing it, then go to another page and back again to the painting page. (Allmost as the page/app needs to refresh or something.)

    So it only happens in your project? You can zip the project folder and send it to support@kwiksher.com, I will look into it.

    aaaiii
    Participant
    #85794

    Hi

    I found a solution for the undo button i made. Since the canvas layer is white I made the undo/eraser button use the the white color instead 🙂

    #86036

    Was a solution ever found for this? I have tried using the “undo” function (and the “redo”), but it doesn’t seem to actually do anything. The error is flagged in the simulator:

    canvasAction.lua:33: attempt to get length of global ‘undone’ (a nil value)

    Yamamoto
    Keymaster
    #86038

    I will review the code of Kwik why ‘undone’ could become a nil til tomorrow.

    Yamamoto
    Keymaster
    #86040

    I have fixed the bug. Please download the following files from the gitHub. I will include these files to the build of Kwik tomorrow.

    – tmplt/commands/kwik/canvasAction.lua
    – tmplt/components/pageXXX/layer_canvas.lua
    https://github.com/kwiksher/kwik4tmplt/blob/master/commands/kwik/canvasAction.lua

    https://github.com/kwiksher/kwik4tmplt/blob/master/components/pageXXX/layer_canvas.lua

    #86043

    That works. Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.