Touch Toolbar helper


#1

The next version of Aseprite v1.2.10-beta2 will contain scripting capabilities to show dialogs. This is a little example:

touch-toolbar

You can download this little script (Touch Toolbar.lua) and copy it in the scripting folder:

local dlg = Dialog("Touch Toolbar")
dlg
  :button{text="Undo",onclick=function() app.command.Undo() end}
  :button{text="Redo",onclick=function() app.command.Redo() end}
  :button{text="|<",onclick=function() app.command.GotoFirstFrame() end}
  :button{text="<",onclick=function() app.command.GotoPreviousFrame() end}
  :button{text=">",onclick=function() app.command.GotoNextFrame() end}
  :button{text=">|",onclick=function() app.command.GotoLastFrame() end}
  :button{text="+",onclick=function() app.command.NewFrame() end}
  :show{wait=false}

Then you will be able to open your toolbar from File > Scripts > Touch Toolbar:

52


Aseprite v1.2.10-beta2
#2

I have to copy this code and paste in a wordpad?


#3

Yes, and rename the *.txt extension of the text file in *.lua. And put it in the script folder (you can access it via File/Scripts/Open Scripts Folder).


#4

Thank you :slight_smile: