mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 14:02:58 +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'];
|
||||
function onHmdChanged(isHmd) {
|
||||
//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) {
|
||||
Menu.setMenuEnabled("View>" + view, !isHmd);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue