Add sound cues to create app

This commit is contained in:
vladest 2017-10-22 14:59:53 +02:00
parent bd418364e1
commit b791dcba7f

View file

@ -1,5 +1,6 @@
import QtQuick 2.0
import QtGraphicalEffects 1.0
import TabletScriptingInterface 1.0
Item {
id: newEntityButton
@ -122,9 +123,11 @@ Item {
hoverEnabled: true
enabled: true
onClicked: {
tabletInterface.playSound(TabletEnums.ButtonClick);
newEntityButton.clicked();
}
onEntered: {
tabletInterface.playSound(TabletEnums.ButtonHover);
newEntityButton.state = "hover state";
}
onExited: {