From 672deb903cdbb7dd34bd171dfa5a58c7f25e37cd Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Fri, 20 Jan 2017 17:31:16 +0000 Subject: [PATCH] correct switch icons --- scripts/system/hmd.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); });