mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 18:42:53 +02:00
32 lines
799 B
JavaScript
32 lines
799 B
JavaScript
"use strict";
|
|
|
|
//
|
|
// help.js
|
|
// scripts/system/
|
|
//
|
|
// Created by Howard Stearns on 2 Nov 2016
|
|
// Copyright 2016 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 tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
|
var button = tablet.addButton({
|
|
text: "HELP"
|
|
});
|
|
|
|
// TODO: make button state reflect whether the window is opened or closed (independently from us).
|
|
function onClicked(){
|
|
Menu.triggerOption('Help...')
|
|
}
|
|
|
|
button.clicked.connect(onClicked);
|
|
|
|
Script.scriptEnding.connect(function () {
|
|
tablet.removeButton(button);
|
|
});
|
|
|
|
}()); // END LOCAL_SCOPE
|