diff --git a/scripts/system/hmd.js b/scripts/system/hmd.js index e6e8ed1c5c..26d37d15c7 100644 --- a/scripts/system/hmd.js +++ b/scripts/system/hmd.js @@ -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); });