mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 11:22:24 +02:00
12518 - Help icon in toolbar does not highlight when help window is open
This commit is contained in:
parent
37645022f6
commit
c15cf33ca1
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
(function() { // BEGIN LOCAL_SCOPE
|
(function() { // BEGIN LOCAL_SCOPE
|
||||||
|
|
||||||
var HOME_BUTTON_TEXTURE = Script.resourcesPath() + "meshes/tablet-with-home-button.fbx/tablet-with-home-button.fbm/button-root.png";
|
var HOME_BUTTON_TEXTURE = Script.resourcesPath() + "meshes/tablet-with-home-button.fbx/tablet-with-home-button.fbm/button-root.png";
|
||||||
|
var HELP_URL = Script.resourcesPath() + "html/tabletHelp.html";
|
||||||
var buttonName = "HELP";
|
var buttonName = "HELP";
|
||||||
var onHelpScreen = false;
|
var onHelpScreen = false;
|
||||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||||
|
@ -40,7 +41,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onScreenChanged(type, url) {
|
function onScreenChanged(type, url) {
|
||||||
onHelpScreen = type === "Web" && url.startsWith("../../../html/tabletHelp.html");
|
onHelpScreen = type === "Web" && url.startsWith(HELP_URL);
|
||||||
button.editProperties({ isActive: onHelpScreen });
|
button.editProperties({ isActive: onHelpScreen });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue