function updateSnow() {
if (userSpeed.currentText == '') { // hack
- //console.log('not initialized yet');
return;
}
}
- //Plasmoid.Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
- Layout.minimumWidth: units.gridUnit * 13;
+ Layout.minimumWidth: units.gridUnit * 14;
Layout.minimumHeight: units.gridUnit * 10;
GridLayout {
Button { width: 100; text: "Stop"; onClicked: destroySnow(); }
}
-//}
Timer {
if(snow[i].x > screenWidth) {
snow[i].x = 0;
} else if (snow[i].x < 0) {
- snow[i].x = 1440;
+ snow[i].x = screenWidth;
}
snow[i].y += snow[i].fallingSpeed;