Add to frame size information about number of current frame and how much frames exists

This commit is contained in:
janczer 2018-09-24 14:12:11 +02:00 committed by Julian Descottes
parent 5a0b6b90e4
commit 5e364e984c

View file

@ -51,7 +51,9 @@
ns.CursorCoordinatesController.prototype.getFrameSizeHTML_ = function () {
var w = this.piskelController.getWidth();
var h = this.piskelController.getHeight();
return '[' + w + 'x' + h + '] ';
var currentFrameIndex = this.piskelController.getCurrentFrameIndex() + 1;
var frameCount = this.piskelController.getFrameCount();
return '[' + w + 'x' + h + '] ' + currentFrameIndex + '/' + frameCount;
};
ns.CursorCoordinatesController.prototype.onCursorMoved_ = function (event, x, y) {