mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixed FilmPreview bugs. Simplified piskel.js, removed refernce to drawingController from tools
This commit is contained in:
@ -4,10 +4,7 @@
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.frames = [];
|
||||
};
|
||||
|
||||
ns.FrameSheet.prototype.validate = function () {
|
||||
throw "FrameSheet.prototype.validate not implemented"
|
||||
this.currentFrameIndex = 0;
|
||||
};
|
||||
|
||||
ns.FrameSheet.prototype.addEmptyFrame = function () {
|
||||
@ -22,6 +19,15 @@
|
||||
return this.frames.length;
|
||||
};
|
||||
|
||||
ns.FrameSheet.prototype.getCurrentFrame = function () {
|
||||
return this.frames[this.currentFrameIndex];
|
||||
};
|
||||
|
||||
ns.FrameSheet.prototype.setCurrentFrameIndex = function (index) {
|
||||
this.currentFrameIndex = index;
|
||||
$.publish(Events.FRAMESHEET_RESET);
|
||||
};
|
||||
|
||||
ns.FrameSheet.prototype.getUsedColors = function() {
|
||||
var colors = {};
|
||||
for (var frameIndex=0; frameIndex < this.frames.length; frameIndex++) {
|
||||
|
Reference in New Issue
Block a user