mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +02:00
Display audio stats in tablet
This commit is contained in:
parent
b985b348ec
commit
2b53cb4722
1 changed files with 17 additions and 11 deletions
|
@ -9,17 +9,23 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
var INITIAL_WIDTH = 400;
|
||||
var INITIAL_OFFSET = 50;
|
||||
if (HMD.active && !Settings.getValue("HUDUIEnabled")) {
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
var qml = Script.resolvePath("stats.qml");
|
||||
tablet.loadQMLSource(qml);
|
||||
Script.stop();
|
||||
|
||||
// Set up the qml ui
|
||||
var qml = Script.resolvePath('stats.qml');
|
||||
var window = new OverlayWindow({
|
||||
title: 'Audio Interface Statistics',
|
||||
source: qml,
|
||||
width: 500, height: 520 // stats.qml may be too large for some screens
|
||||
});
|
||||
window.setPosition(INITIAL_OFFSET, INITIAL_OFFSET);
|
||||
} else {
|
||||
var INITIAL_WIDTH = 400;
|
||||
var INITIAL_OFFSET = 50;
|
||||
|
||||
window.closed.connect(function() { Script.stop(); });
|
||||
var qml = Script.resolvePath("stats.qml");
|
||||
var window = new OverlayWindow({
|
||||
title: "Audio Interface Statistics",
|
||||
source: qml,
|
||||
width: 500, height: 520 // stats.qml may be too large for some screens
|
||||
});
|
||||
window.setPosition(INITIAL_OFFSET, INITIAL_OFFSET);
|
||||
|
||||
window.closed.connect(function () { Script.stop(); });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue