mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
added clicking sounds to tablet menus
This commit is contained in:
parent
2af72f1a50
commit
2cc1ee008d
2 changed files with 11 additions and 3 deletions
|
@ -54,7 +54,10 @@ FocusScope {
|
||||||
onEntered: iconColorOverlay.color = "#1fc6a6";
|
onEntered: iconColorOverlay.color = "#1fc6a6";
|
||||||
onExited: iconColorOverlay.color = "#ffffff";
|
onExited: iconColorOverlay.color = "#ffffff";
|
||||||
// navigate back to root level menu
|
// navigate back to root level menu
|
||||||
onClicked: buildMenu();
|
onClicked: {
|
||||||
|
buildMenu();
|
||||||
|
tabletRoot.playButtonClickSound();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,10 +82,12 @@ FocusScope {
|
||||||
onEntered: breadcrumbText.color = "#1fc6a6";
|
onEntered: breadcrumbText.color = "#1fc6a6";
|
||||||
onExited: breadcrumbText.color = "#34a2c7";
|
onExited: breadcrumbText.color = "#34a2c7";
|
||||||
// navigate back to parent level menu if there is one
|
// navigate back to parent level menu if there is one
|
||||||
onClicked:
|
onClicked: {
|
||||||
if (breadcrumbText.text !== "Menu") {
|
if (breadcrumbText.text !== "Menu") {
|
||||||
menuPopperUpper.closeLastMenu();
|
menuPopperUpper.closeLastMenu();
|
||||||
}
|
}
|
||||||
|
tabletRoot.playButtonClickSound();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,10 @@ FocusScope {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: listView.currentIndex = index
|
onEntered: listView.currentIndex = index
|
||||||
onClicked: root.selected(item)
|
onClicked: {
|
||||||
|
root.selected(item)
|
||||||
|
tabletRoot.playButtonClickSound();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue