overte-JulianGro/unpublishedScripts/steam.js
2017-01-25 16:29:36 -08:00

28 lines
713 B
JavaScript

//
// steam.js
// scripts/system/
//
// Created by Clement on 7/28/16
// 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 steamInviteButton = toolBar.addButton({
objectName: "steamInvite",
imageURL: Script.resolvePath("assets/images/tools/steam-invite.svg"),
visible: Steam.isRunning,
alpha: 0.9
});
steamInviteButton.clicked.connect(function(){
Steam.openInviteOverlay();
});
Script.scriptEnding.connect(function () {
toolBar.removeButton("steamInvite");
});