mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 01:36:20 +02:00
29 lines
708 B
JavaScript
29 lines
708 B
JavaScript
//
|
|
// goto.js
|
|
// scripts/system/
|
|
//
|
|
// Created by Howard Stearns on 2 Jun 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
|
|
//
|
|
|
|
var toolBar = Toolbars.getToolbar("com.highfidelity.interface.toolbar.system");
|
|
|
|
|
|
var button = toolBar.addButton({
|
|
objectName: "goto",
|
|
imageURL: Script.resolvePath("assets/images/tools/directory-01.svg"),
|
|
visible: true,
|
|
yOffset: 50,
|
|
alpha: 0.9,
|
|
});
|
|
|
|
button.clicked.connect(function(){
|
|
DialogsManager.toggleAddressBar();
|
|
});
|
|
|
|
Script.scriptEnding.connect(function () {
|
|
button.clicked.disconnect();
|
|
});
|