mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
StandbyState::onUpdateStatusBar(): show frame duration
This commit is contained in:
parent
c3e583f927
commit
d6533d8a3f
@ -472,12 +472,13 @@ bool StandbyState::onUpdateStatusBar(Editor* editor)
|
||||
(editor->getDocument()->isMaskVisible() ?
|
||||
editor->getDocument()->getMask(): NULL);
|
||||
|
||||
StatusBar::instance()->setStatusText
|
||||
(0, "Pos %d %d, Size %d %d, Frame %d",
|
||||
x, y,
|
||||
(mask ? mask->getBounds().w: sprite->getWidth()),
|
||||
(mask ? mask->getBounds().h: sprite->getHeight()),
|
||||
editor->getFrame()+1);
|
||||
StatusBar::instance()->setStatusText(0,
|
||||
"Pos %d %d, Size %d %d, Frame %d [%d msecs]",
|
||||
x, y,
|
||||
(mask ? mask->getBounds().w: sprite->getWidth()),
|
||||
(mask ? mask->getBounds().h: sprite->getHeight()),
|
||||
editor->getFrame()+1,
|
||||
sprite->getFrameDuration(editor->getFrame()));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user