mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 19:52:41 +02:00
39 lines
826 B
JavaScript
39 lines
826 B
JavaScript
"use strict";
|
|
//
|
|
// stats.js
|
|
// scripts/system/
|
|
//
|
|
// Created by Sam Gondelman on 3/14/18
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
(function() { // BEGIN LOCAL_SCOPE
|
|
|
|
var statsbar;
|
|
var statsButton;
|
|
|
|
function init() {
|
|
statsbar = new QmlFragment({
|
|
qml: "hifi/StatsBar.qml"
|
|
});
|
|
|
|
statsButton = statsbar.addButton({
|
|
icon: "icons/stats.svg",
|
|
activeIcon: "icons/stats.svg",
|
|
textSize: 45,
|
|
bgOpacity: 0.0,
|
|
activeBgOpacity: 0.0,
|
|
bgColor: "#FFFFFF",
|
|
text: "STATS"
|
|
});
|
|
statsButton.clicked.connect(function() {
|
|
Menu.triggerOption("Show Statistics");
|
|
});
|
|
}
|
|
|
|
init();
|
|
|
|
}()); // END LOCAL_SCOPE
|