From 7b04a6d361e78f0f0b27eb509f84db7fd555d03b Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Fri, 31 May 2019 12:37:35 -0700 Subject: [PATCH] Sounds --- .../resources/qml/hifi/simplifiedUI/avatarApp/AvatarApp.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/resources/qml/hifi/simplifiedUI/avatarApp/AvatarApp.qml b/interface/resources/qml/hifi/simplifiedUI/avatarApp/AvatarApp.qml index 66bbc99ad4..4c6615ebdc 100644 --- a/interface/resources/qml/hifi/simplifiedUI/avatarApp/AvatarApp.qml +++ b/interface/resources/qml/hifi/simplifiedUI/avatarApp/AvatarApp.qml @@ -12,6 +12,7 @@ import QtQuick 2.10 import "../simplifiedConstants" as SimplifiedConstants import "./components" as AvatarAppComponents import stylesUit 1.0 as HifiStylesUit +import TabletScriptingInterface 1.0 import "qrc:////qml//hifi//models" as HifiModels // Absolute path so the same code works everywhere. Rectangle { @@ -114,7 +115,11 @@ Rectangle { id: homeButtonMouseArea anchors.fill: parent hoverEnabled: true + onEntered: { + Tablet.playSound(TabletEnums.ButtonHover); + } onClicked: { + Tablet.playSound(TabletEnums.ButtonClick); // Can't use `Window.location` in QML, so just use what setting `Window.location` actually calls under the hood: // AddressManager.handleLookupString(). AddressManager.handleLookupString(LocationBookmarks.getHomeLocationAddress());