|
@@ -42,7 +42,6 @@ Item {
|
|
|
|
|
|
if (colHeight < 1.5*root.height) {
|
|
if (colHeight < 1.5*root.height) {
|
|
var item = pictureDelegate.createObject(column)
|
|
var item = pictureDelegate.createObject(column)
|
|
- item.leftViewport.connect(function() { d.itemCount--; })
|
|
|
|
item.y = -colHeight - item.height
|
|
item.y = -colHeight - item.height
|
|
d.itemCount++
|
|
d.itemCount++
|
|
pictureArray.push(item)
|
|
pictureArray.push(item)
|
|
@@ -97,7 +96,10 @@ Item {
|
|
interval: 1000*(settings.interval > 60 ? 60*(settings.interval-60) : settings.interval)*(Math.random()+1)
|
|
interval: 1000*(settings.interval > 60 ? 60*(settings.interval-60) : settings.interval)*(Math.random()+1)
|
|
onTriggered: {
|
|
onTriggered: {
|
|
if (pictureArray.length > 0) {
|
|
if (pictureArray.length > 0) {
|
|
- pictureArray.shift().world = bullshitWorld
|
|
|
|
|
|
+ var image = pictureArray.shift()
|
|
|
|
+ image.world = bullshitWorld
|
|
|
|
+ image.freefall = true
|
|
|
|
+ d.itemCount--
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -139,6 +141,11 @@ Item {
|
|
delegate: columnComponent
|
|
delegate: columnComponent
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ Connections {
|
|
|
|
+ target: settings
|
|
|
|
+ onColumnCountChanged: d.itemCount = 0
|
|
|
|
+ }
|
|
|
|
+
|
|
// TODO: The boot (Monty Python foot) of death to be applied to the stacks
|
|
// TODO: The boot (Monty Python foot) of death to be applied to the stacks
|
|
RectangleBoxBody {
|
|
RectangleBoxBody {
|
|
id: rect
|
|
id: rect
|