mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 16:41:34 +02:00
correct switch icons
This commit is contained in:
parent
6641f9bafd
commit
672deb903c
1 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,17 @@ var button;
|
||||||
var desktopOnlyViews = ['Mirror', 'Independent Mode', 'Entity Mode'];
|
var desktopOnlyViews = ['Mirror', 'Independent Mode', 'Entity Mode'];
|
||||||
function onHmdChanged(isHmd) {
|
function onHmdChanged(isHmd) {
|
||||||
//TODO change button icon when the hmd changes
|
//TODO change button icon when the hmd changes
|
||||||
|
if (isHmd) {
|
||||||
|
button.editProperties({
|
||||||
|
icon: "icons/tablet-icons/switch-a.svg",
|
||||||
|
text: "DESKTOP"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
button.editProperties({
|
||||||
|
icon: "icons/tablet-icons/switch-i.svg",
|
||||||
|
text: "VR"
|
||||||
|
});
|
||||||
|
}
|
||||||
desktopOnlyViews.forEach(function (view) {
|
desktopOnlyViews.forEach(function (view) {
|
||||||
Menu.setMenuEnabled("View>" + view, !isHmd);
|
Menu.setMenuEnabled("View>" + view, !isHmd);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue