Skip to content

Commit df313b1

Browse files
committed
Editor: Added version info.
1 parent bf8de9b commit df313b1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

editor/js/Menubar.Status.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,27 @@ Menubar.Status = function ( editor ) {
2323
} );
2424
container.add( checkbox );
2525

26-
var title = new UI.Panel();
27-
title.setClass( 'title' );
28-
title.setTextContent( 'Autosave' );
29-
container.add( title );
26+
var text = new UI.Text( 'autosave' );
27+
text.setClass( 'title' );
28+
container.add( text );
3029

3130
editor.signals.savingStarted.add( function () {
3231

33-
title.setTextDecoration( 'underline' );
32+
text.setTextDecoration( 'underline' );
3433

3534
} );
3635

3736
editor.signals.savingFinished.add( function () {
3837

39-
title.setTextDecoration( 'none' );
38+
text.setTextDecoration( 'none' );
4039

4140
} );
4241

42+
var version = new UI.Text( 'r' + THREE.REVISION );
43+
version.setClass( 'title' );
44+
version.setOpacity( 0.5 );
45+
container.add( version );
46+
4347
return container;
4448

4549
};

0 commit comments

Comments
 (0)