Add to frame size information about number of current frame and how much frames exists
This commit is contained in:
parent
5a0b6b90e4
commit
5e364e984c
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@
|
||||||
ns.CursorCoordinatesController.prototype.getFrameSizeHTML_ = function () {
|
ns.CursorCoordinatesController.prototype.getFrameSizeHTML_ = function () {
|
||||||
var w = this.piskelController.getWidth();
|
var w = this.piskelController.getWidth();
|
||||||
var h = this.piskelController.getHeight();
|
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) {
|
ns.CursorCoordinatesController.prototype.onCursorMoved_ = function (event, x, y) {
|
||||||
|
|
Loading…
Reference in a new issue