History

Display audio stats in tablet

David Rowe committed 9 years ago

Commit 2b53cb41 parent b985b341 file · +17 −11Browse files

Showing the changes to scripts/developer (1 of 1 file). Show all

Unified · Split

scripts/developer/utilities/audio/stats.js+17−11
@@ -9,17 +9,23 @@ · 8 unmodified lines
9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10//10//
11 11
12var INITIAL_WIDTH = 400;12if (HMD.active && !Settings.getValue("HUDUIEnabled")) {
13var INITIAL_OFFSET = 50;13 var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
14 var qml = Script.resolvePath("stats.qml");
15 tablet.loadQMLSource(qml);
16 Script.stop();
14 17
15// Set up the qml ui18} else {
16var qml = Script.resolvePath('stats.qml');19 var INITIAL_WIDTH = 400;
17var window = new OverlayWindow({20 var INITIAL_OFFSET = 50;
18 title: 'Audio Interface Statistics',
19 source: qml,
20 width: 500, height: 520 // stats.qml may be too large for some screens
21});
22window.setPosition(INITIAL_OFFSET, INITIAL_OFFSET);
23 21
24window.closed.connect(function() { Script.stop(); });22 var qml = Script.resolvePath("stats.qml");
23 var window = new OverlayWindow({
24 title: "Audio Interface Statistics",
25 source: qml,
26 width: 500, height: 520 // stats.qml may be too large for some screens
27 });
28 window.setPosition(INITIAL_OFFSET, INITIAL_OFFSET);
25 29
30 window.closed.connect(function () { Script.stop(); });
31}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t