Home / Topic / Undo function/button

Undo function/button

Home Kwiksher Forums Kwik4 Undo function/button

Viewing 7 posts - 1 through 7 (of 7 total)
  • aaaiii
    Participant
    #85789

    Hi

    Dont know if you got to see my reply to the “eraser” button problem i had. But i made a mistake by calling it eraser button when i actually ment the undo button. The reason i called it eraser button was because i made an eraser icon for the undo button.
    I followed the tutorial and the undo action is working but not straight away when choosing the undo button i’ve made. 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.) All the other functions is working properly like choosing color, change brush size, erase canvas by shaking and taking a picture.
    Do you know what could be the problem to the undo button problem?

    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 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.