浏览代码

Allow transition to be configured

Donald Carr 8 年之前
父节点
当前提交
e52258ae91
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      qml/views/reel/Reel.qml

+ 2 - 1
qml/views/reel/Reel.qml

@@ -14,6 +14,7 @@ View {
     Settings {
     Settings {
         id: reelSettings
         id: reelSettings
         category: "Reel"
         category: "Reel"
+        property bool deathTransition: false
         property int deathPeriod: 10000
         property int deathPeriod: 10000
         property real restingVelocity: 4
         property real restingVelocity: 4
         property real velocityAccelIncrements: 0.3
         property real velocityAccelIncrements: 0.3
@@ -40,7 +41,7 @@ View {
             }
             }
             var col = columnArray[globalSettings.columnCount - 1]
             var col = columnArray[globalSettings.columnCount - 1]
             priorImage = col.imageArray.shift()
             priorImage = col.imageArray.shift()
-            priorImage.bowOut()
+            reelSettings.deathTransition && priorImage.bowOut()
         }
         }
 
 
         NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: -1 }
         NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: -1 }