This file contains 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 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 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" } |
This file contains 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 oldSprite = app.sprite | |
app.command.OpenFile() | |
if oldSprite ~= app.sprite then | |
app.command.ChangePixelFormat{ format="rgb" } | |
end |
This file contains 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 oldSprite = app.sprite | |
app.command.OpenFile() | |
if oldSprite ~= app.sprite then | |
app.preferences.document(app.sprite).grid.snap = true | |
end |
This file contains 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 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
{ "frames": { | |
"file 0.ase": { | |
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 }, | |
"rotated": false, | |
"trimmed": false, | |
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 }, | |
"sourceSize": { "w": 32, "h": 32 }, | |
"duration": 100 | |
}, | |
"file 1.ase": { |
This file contains 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
diff --git a/data/gui.xml b/data/gui.xml | |
index ac89a3685..2af1545bf 100644 | |
--- a/data/gui.xml | |
+++ b/data/gui.xml | |
@@ -1315,6 +1315,13 @@ | |
controller="one_point" | |
pointshape="floodfill" | |
tracepolicy="accumulate" /> | |
+ <tool id="pencil_selection" | |
+ text="@.pencil" |
This file contains 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
---------------------------------------- | |
Layer Head | |
Default Category: | |
Properties: | |
* categories table: 0x55c3cbcda3e0 | |
* folders table: 0x55c3cbcda4f0 | |
* id 2 | |
---------------------------------------- | |
Layer Tilemap 1 | |
Default Category: |
This file contains 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 PK = "aseprite/Attachment-System" | |
local sprite = app.activeSprite | |
function find_tileset_by_catID(catID) | |
for _,ts in ipairs(sprite.tilesets) do | |
if ts.properties(PK) and | |
ts.properties(PK).id == catID then | |
return ts | |
end | |
end |
NewerOlder