mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
add better name for dynamic palette copies
This commit is contained in:
parent
897eddd0e8
commit
1f2f0e9e3a
@ -44,9 +44,10 @@
|
||||
|
||||
var uuid = pskl.utils.Uuid.generate();
|
||||
if (paletteId == Constants.CURRENT_COLORS_PALETTE_ID) {
|
||||
palette = new pskl.model.Palette(uuid, 'Current colors clone', this.getCurrentColors_());
|
||||
palette = new pskl.model.Palette(uuid, 'File colors copy', this.getCurrentColors_());
|
||||
} else if (paletteId == Constants.CURRENT_FRAME_COLORS_PALETTE_ID) {
|
||||
palette = new pskl.model.Palette(uuid, 'Current frame colors clone', this.getCurrentFrameColors_());
|
||||
var frameId = pskl.app.piskelController.getCurrentFrameIndex() + 1;
|
||||
palette = new pskl.model.Palette(uuid, 'frame:' + frameId + ' colors copy', this.getCurrentFrameColors_());
|
||||
} else {
|
||||
palette = new pskl.model.Palette(uuid, 'New palette', []);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user