|
@@ -33,15 +33,13 @@ Item {
|
|
}
|
|
}
|
|
|
|
|
|
World {
|
|
World {
|
|
- id: bullshitWorld
|
|
|
|
- timeStep: d.pace
|
|
|
|
- running: d.running
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- World {
|
|
|
|
- id: commonWorld
|
|
|
|
|
|
+ id: world
|
|
timeStep: d.pace
|
|
timeStep: d.pace
|
|
running: d.globalWorld && d.running
|
|
running: d.globalWorld && d.running
|
|
|
|
+ property var limbo: World {
|
|
|
|
+ timeStep: world.timeStep
|
|
|
|
+ running: world.running
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
Component {
|
|
Component {
|
|
@@ -75,7 +73,7 @@ Item {
|
|
image.effect.target = image
|
|
image.effect.target = image
|
|
}
|
|
}
|
|
image.beyondThePale.connect(removeImage)
|
|
image.beyondThePale.connect(removeImage)
|
|
- image.world = d.globalWorld ? commonWorld : columnWorld
|
|
|
|
|
|
+ image.world = d.globalWorld ? world : isolatedWorld
|
|
image.x = xOffset
|
|
image.x = xOffset
|
|
stackHeight += (image.height + d.itemTravel)
|
|
stackHeight += (image.height + d.itemTravel)
|
|
image.y = floor.y - stackHeight
|
|
image.y = floor.y - stackHeight
|
|
@@ -93,6 +91,14 @@ Item {
|
|
d.itemCount--
|
|
d.itemCount--
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function shiftImageToLimbo() {
|
|
|
|
+ if (pictureArray.length > 0) {
|
|
|
|
+ var image = pictureArray.shift()
|
|
|
|
+ image.world = image.world.limbo
|
|
|
|
+ addImage()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
width: parent.width/d.columnCount
|
|
width: parent.width/d.columnCount
|
|
|
|
|
|
anchors { top: parent.top; bottom: parent.bottom }
|
|
anchors { top: parent.top; bottom: parent.bottom }
|
|
@@ -101,14 +107,18 @@ Item {
|
|
property bool fixedRotation: true
|
|
property bool fixedRotation: true
|
|
|
|
|
|
World {
|
|
World {
|
|
- id: columnWorld
|
|
|
|
|
|
+ id: isolatedWorld
|
|
timeStep: d.pace
|
|
timeStep: d.pace
|
|
running: !d.globalWorld && d.running
|
|
running: !d.globalWorld && d.running
|
|
|
|
+ property var limbo: World {
|
|
|
|
+ timeStep: isolatedWorld.timeStep
|
|
|
|
+ running: isolatedWorld.running
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
RectangleBoxBody {
|
|
RectangleBoxBody {
|
|
id: floor
|
|
id: floor
|
|
- world: columnWorld
|
|
|
|
|
|
+ world: isolatedWorld
|
|
height: 0
|
|
height: 0
|
|
width: parent.width
|
|
width: parent.width
|
|
x: xOffset
|
|
x: xOffset
|
|
@@ -131,13 +141,7 @@ Item {
|
|
running: d.running
|
|
running: d.running
|
|
repeat: true
|
|
repeat: true
|
|
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: {
|
|
|
|
- if (pictureArray.length > 0) {
|
|
|
|
- var image = pictureArray.shift()
|
|
|
|
- image.world = bullshitWorld
|
|
|
|
- addImage()
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ onTriggered: shiftImageToLimbo()
|
|
}
|
|
}
|
|
|
|
|
|
Connections {
|
|
Connections {
|
|
@@ -159,7 +163,7 @@ Item {
|
|
// floor
|
|
// floor
|
|
RectangleBoxBody {
|
|
RectangleBoxBody {
|
|
id: globalFloor
|
|
id: globalFloor
|
|
- world: commonWorld
|
|
|
|
|
|
+ world: world
|
|
height: 0
|
|
height: 0
|
|
anchors {
|
|
anchors {
|
|
left: parent.left
|
|
left: parent.left
|
|
@@ -173,7 +177,7 @@ Item {
|
|
id: debugDraw
|
|
id: debugDraw
|
|
enabled: false
|
|
enabled: false
|
|
z: 1
|
|
z: 1
|
|
- world: commonWorld
|
|
|
|
|
|
+ world: world
|
|
anchors.fill: parent
|
|
anchors.fill: parent
|
|
opacity: 0.75
|
|
opacity: 0.75
|
|
visible: enabled
|
|
visible: enabled
|