mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #414: part3: PiskelController api + history support
This commit is contained in:
parent
6546b520b3
commit
a75e78e366
@ -205,6 +205,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
ns.PiskelController.prototype.setLayerOpacityAt = function (index, opacity) {
|
||||
var layer = this.getLayerByIndex(index);
|
||||
if (layer) {
|
||||
layer.setOpacity(opacity);
|
||||
}
|
||||
};
|
||||
|
||||
ns.PiskelController.prototype.mergeDownLayerAt = function (index) {
|
||||
var layer = this.getLayerByIndex(index);
|
||||
var downLayer = this.getLayerByIndex(index - 1);
|
||||
|
@ -29,6 +29,7 @@
|
||||
this.saveWrap_('moveLayerUp', true);
|
||||
this.saveWrap_('moveLayerDown', true);
|
||||
this.saveWrap_('removeCurrentLayer', true);
|
||||
this.saveWrap_('setLayerOpacityAt', true);
|
||||
|
||||
var shortcuts = pskl.service.keyboard.Shortcuts;
|
||||
pskl.app.shortcutService.registerShortcut(shortcuts.MISC.PREVIOUS_FRAME, this.selectPreviousFrame.bind(this));
|
||||
|
Loading…
Reference in New Issue
Block a user