mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-11 01:12:30 +02:00
22 lines
No EOL
539 B
JavaScript
22 lines
No EOL
539 B
JavaScript
(function() {
|
|
var APP_NAME = "BLOCKS";
|
|
var APP_URL = "https://vr.google.com/objects/";
|
|
var APP_ICON = "https://hifi-content.s3.amazonaws.com/faye/gemstoneMagicMaker/gemstoneAppIcon.svg";
|
|
|
|
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
|
var button = tablet.addButton({
|
|
icon: APP_ICON,
|
|
text: APP_NAME
|
|
});
|
|
|
|
function onClicked() {
|
|
tablet.gotoWebScreen(APP_URL);
|
|
}
|
|
button.clicked.connect(onClicked);
|
|
|
|
function cleanup() {
|
|
tablet.removeButton(button);
|
|
}
|
|
|
|
Script.scriptEnding.connect(cleanup);
|
|
}()); |