mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Add to frame size information about number of current frame and how much frames exists
This commit is contained in:
parent
5a0b6b90e4
commit
5e364e984c
@ -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 New Issue
Block a user