-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathTouch Toolbar.lua
More file actions
18 lines (17 loc) · 923 Bytes
/
Touch Toolbar.lua
File metadata and controls
18 lines (17 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
----------------------------------------------------------------------
-- A customizable toolbar that can be useful in touch-like devices
-- (e.g. on a Microsoft Surface).
--
-- Feel free to add new commands and modify it as you want.
----------------------------------------------------------------------
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}
:button{text="-",onclick=function() app.command.RemoveFrame() end}
:show{wait=false}