mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 16:19:27 +02:00
added debug mode
This commit is contained in:
parent
434e7dfbbd
commit
edd1a02aa1
1 changed files with 9 additions and 6 deletions
|
@ -7,6 +7,7 @@ Item {
|
|||
property string text: "EDIT"
|
||||
property string icon: "icons/edit-icon.svg"
|
||||
property bool isActive: false
|
||||
property bool inDebugMode: true
|
||||
width: 129
|
||||
height: 129
|
||||
|
||||
|
@ -99,12 +100,14 @@ Item {
|
|||
hoverEnabled: true
|
||||
onClicked: {
|
||||
console.log("Tablet Button Clicked!");
|
||||
if (tabletButton.isActive) {
|
||||
tabletButton.state = "base state";
|
||||
tabletButton.isActive = false;
|
||||
} else {
|
||||
tabletButton.state = "active state";
|
||||
tabletButton.isActive = true;
|
||||
if (tabletButton.inDebugMode) {
|
||||
if (tabletButton.isActive) {
|
||||
tabletButton.state = "base state";
|
||||
tabletButton.isActive = false;
|
||||
} else {
|
||||
tabletButton.state = "active state";
|
||||
tabletButton.isActive = true;
|
||||
}
|
||||
}
|
||||
tabletButton.clicked();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue