This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <keyboard version="1"> | |
| <commands> | |
| <key command="Undo" shortcut="Left"/> | |
| <key command="Redo" shortcut="Right"/> | |
| <key command="GotoPreviousFrame" context="Normal" shortcut="Left" removed="true"/> | |
| <key command="GotoNextFrame" context="Normal" shortcut="Right" removed="true"/> | |
| <key command="MoveMask" context="Selection" shortcut="Left" removed="true"> | |
| <param name="direction" value="left"/> | |
| <param name="quantity" value="1"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Copyright (C) 2019 David Capello | |
| local dlg = Dialog("Plasma") | |
| :number{ id="width", label="Size:", text="100", focus=true } | |
| :number{ id="height", text="100" } | |
| :number{ id="frames", label="Frames:", text="100" } | |
| :button{ id="ok", text="OK", focus=true } | |
| :button{ id="cancel", text="Cancel" } | |
| dlg:show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local layer = app.activeLayer | |
| if layer then | |
| layer.stackIndex = layer.stackIndex-1 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if app.preferences.experimental.nonactive_layers_opacity == 255 then | |
| app.preferences.experimental.nonactive_layers_opacity = 128 | |
| else | |
| app.preferences.experimental.nonactive_layers_opacity = 255 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if TilesetMode == nil then return app.alert "Use Aseprite v1.3" end | |
| local lay = app.activeLayer | |
| if not lay.isTilemap then return app.alert "No active tilemap layer" end | |
| local tileset = lay.tileset | |
| local dlg = Dialog("Export Tileset") | |
| dlg:file{ id="file", label="Export to File:", save=true, focus=true, | |
| filename=app.fs.joinPath(app.fs.filePath(lay.sprite.filename), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| math.randomseed(os.time()) | |
| chars = { ".", "O" } | |
| for i=1,20 do | |
| s = "" | |
| for j=1,80 do | |
| s = s .. chars[math.random(1, 2)] | |
| end | |
| print(s) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if math.random(1, 2) == 1 then | |
| print "Cara" | |
| else | |
| print "Cruz" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local dlg | |
| dlg = Dialog("Pixel Ratio") | |
| :entry{ id="w", label="Width", text="1" } | |
| :entry{ id="h", label="height", text="1" } | |
| :button{ id="test", text="Test", onclick=function() | |
| app.sprite.pixelRatio = Size(dlg.data.w, dlg.data.h) | |
| app.command.Zoom{ action="in" } | |
| app.command.Zoom{ action="out" } | |
| app.command.ScrollCenter() | |
| end } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #o:: | |
| WinSet, Alwaysontop, , A | |
| WinGet, ExStyle, ExStyle, A | |
| if (ExStyle & 0x8) ; 0x8 is WS_EX_TOPMOST | |
| { | |
| WinSet, Transparent, 204, A | |
| } | |
| else | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.command.ConvertLayer{ ui=false, to="tilemap" } |
NewerOlder