-
Notifications
You must be signed in to change notification settings - Fork 1
/
Quick-Resize.lua
41 lines (35 loc) · 916 Bytes
/
Quick-Resize.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
function init(plugin)
function QuickResize(scaleFactor)
app.command.SpriteSize { ui=false, scale=scaleFactor, method="nearest" }
end
plugin:newCommand{
id="QuickResize_Quarter",
title="Quick Resize 25%",
group="sprite_size",
onclick=function() QuickResize(0.25) end
}
plugin:newCommand{
id="QuickResize_Half",
title="Quick Resize 50%",
group="sprite_size",
onclick=function() QuickResize(0.5) end
}
plugin:newCommand{
id="QuickResize_Double",
title="Quick Resize 200%",
group="sprite_size",
onclick=function() QuickResize(2) end
}
plugin:newCommand{
id="QuickResize_Triple",
title="Quick Resize 300%",
group="sprite_size",
onclick=function() QuickResize(3) end
}
plugin:newCommand{
id="QuickResize_Quadruple",
title="Quick Resize 400%",
group="sprite_size",
onclick=function() QuickResize(4) end
}
end