Skip to content

Commit 2aa4b95

Browse files
committed
Add a description and basic validation for the Path Editor Example
1 parent 2834e05 commit 2aa4b95

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Path Editor.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
----------------------------------------------------------------------
2+
-- This example shows how to create a simple path editor,
3+
-- using the canvas widget.
4+
----------------------------------------------------------------------
5+
6+
if app.apiVersion < 21 then
7+
return app.alert("This script requires Aseprite v1.3-rc1")
8+
end
9+
10+
-- This script requires UI
11+
if not app.isUIAvailable then
12+
return
13+
end
14+
115
local PointRadius = 5
216

317
-- Use the theme colors

0 commit comments

Comments
 (0)