mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +02:00
Merge pull request #11645 from vladest/goto_sound_cues
Sound cues for GoTo interface
This commit is contained in:
commit
bd418364e1
1 changed files with 11 additions and 2 deletions
|
@ -14,6 +14,8 @@
|
||||||
import Hifi 1.0
|
import Hifi 1.0
|
||||||
import QtQuick 2.5
|
import QtQuick 2.5
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
import TabletScriptingInterface 1.0
|
||||||
|
|
||||||
import "toolbars"
|
import "toolbars"
|
||||||
import "../styles-uit"
|
import "../styles-uit"
|
||||||
|
|
||||||
|
@ -243,9 +245,15 @@ Item {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
acceptedButtons: Qt.LeftButton;
|
acceptedButtons: Qt.LeftButton;
|
||||||
onClicked: goFunction("hifi://" + hifiUrl);
|
onClicked: {
|
||||||
|
tabletInterface.playSound(TabletEnums.ButtonClick);
|
||||||
|
goFunction("hifi://" + hifiUrl);
|
||||||
|
}
|
||||||
hoverEnabled: true;
|
hoverEnabled: true;
|
||||||
onEntered: hoverThunk();
|
onEntered: {
|
||||||
|
tabletInterface.playSound(TabletEnums.ButtonHover);
|
||||||
|
hoverThunk();
|
||||||
|
}
|
||||||
onExited: unhoverThunk();
|
onExited: unhoverThunk();
|
||||||
}
|
}
|
||||||
StateImage {
|
StateImage {
|
||||||
|
@ -261,6 +269,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function go() {
|
function go() {
|
||||||
|
tabletInterface.playSound(TabletEnums.ButtonClick);
|
||||||
goFunction(drillDownToPlace ? ("/places/" + placeName) : ("/user_stories/" + storyId));
|
goFunction(drillDownToPlace ? ("/places/" + placeName) : ("/user_stories/" + storyId));
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
Loading…
Reference in a new issue