mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-10 01:13:45 +02:00
Merge pull request #12475 from ElderOrb/FB12518
fix for 'help icon in toolbar does not highlight when help window is open'
This commit is contained in:
commit
c227c11aa2
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
(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 HELP_URL = Script.resourcesPath() + "html/tabletHelp.html";
|
||||
var buttonName = "HELP";
|
||||
var onHelpScreen = false;
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
|
@ -39,7 +40,7 @@
|
|||
}
|
||||
|
||||
function onScreenChanged(type, url) {
|
||||
onHelpScreen = type === "Web" && url.startsWith("../../../html/tabletHelp.html");
|
||||
onHelpScreen = type === "Web" && url.startsWith(HELP_URL);
|
||||
button.editProperties({ isActive: onHelpScreen });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue