more debug statements

This commit is contained in:
Wayne Chen 2018-08-21 11:17:33 -07:00
parent 7e03fc98b2
commit bfb9b67968
3 changed files with 10 additions and 3 deletions

View file

@ -117,6 +117,7 @@ Item {
id: pageRepeater
model: Math.ceil(tabletProxy.buttons.rowCount() / TabletEnums.ButtonsOnPage)
onItemAdded: {
console.log("onItemAdded: " + tabletProxy.buttons.rowCount());
item.proxyModel.sourceModel = tabletProxy.buttons;
item.proxyModel.pageIndex = index;
}
@ -208,6 +209,7 @@ Item {
Component.onCompleted: updateProperties()
function updateProperties() {
console.log("updateProperties: " + tabletProxy.buttons.rowCount());
var keys = Object.keys(modelData.properties).forEach(function (key) {
if (tabletButton[key] !== modelData.properties[key]) {
tabletButton[key] = modelData.properties[key];
@ -269,6 +271,10 @@ Item {
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
count: swipeView.count
Component.onCompleted: {
console.log("pageIndicator: " + pageIndicator.count);
}
}
}

View file

@ -52,6 +52,7 @@ var HOME_BUTTON_TEXTURE = "http://hifi-content.s3.amazonaws.com/alan/dev/tablet-
if (isHMDMode) {
button = tablet.addButton(buttonProperties);
button.clicked.connect(onClicked);
print("Adding menu button");
} else if (button) {
button.clicked.disconnect(onClicked);
tablet.removeButton(button);

View file

@ -22,7 +22,7 @@
var DEFAULT_TABLET_SCALE = 70;
var preMakeTime = Date.now();
var validCheckTime = Date.now();
var debugTablet = false;
var debugTablet = true;
var tabletScalePercentage = 70.0;
var UIWebTablet = null;
var MSECS_PER_SEC = 1000.0;
@ -298,7 +298,7 @@
}
wantsMenu = clicked;
});
clickMapping.from(Controller.Standard.LeftSecondaryThumb).peek().to(function (clicked) {
if (clicked) {
//activeHudPoint2d(Controller.Standard.LeftHand);
@ -306,7 +306,7 @@
}
wantsMenu = clicked;
});
clickMapping.from(Controller.Standard.Start).peek().to(function (clicked) {
if (clicked) {
//activeHudPoint2dGamePad();