From 5e364e984cf2c6741476382b042d4cac26a29dd3 Mon Sep 17 00:00:00 2001 From: janczer Date: Mon, 24 Sep 2018 14:12:11 +0200 Subject: [PATCH] Add to frame size information about number of current frame and how much frames exists --- src/js/controller/CursorCoordinatesController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/controller/CursorCoordinatesController.js b/src/js/controller/CursorCoordinatesController.js index 789c852..7b98e08 100644 --- a/src/js/controller/CursorCoordinatesController.js +++ b/src/js/controller/CursorCoordinatesController.js @@ -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) {