summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame/content/FastBlock.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/samegame/content/FastBlock.qml')
-rw-r--r--demos/declarative/samegame/content/FastBlock.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/demos/declarative/samegame/content/FastBlock.qml b/demos/declarative/samegame/content/FastBlock.qml
index 04eb59b..5149911 100644
--- a/demos/declarative/samegame/content/FastBlock.qml
+++ b/demos/declarative/samegame/content/FastBlock.qml
@@ -1,7 +1,8 @@
Rect { id:block
//Note: These properties are the interface used to control the blocks
property bool dying: false
- property bool spawning: false
+ property bool spawned: false
+ property bool selected: false
property int type: 0
property int targetY: 0
property int targetX: 0
@@ -12,12 +13,12 @@ Rect { id:block
opacity: 0
y: targetY
x: targetX
- y: Behavior { NumberAnimation { properties:"y"; duration: 200 } }
- opacity: Behavior { NumberAnimation { properties:"opacity"; duration: 200 } }
+ //y: Behavior { NumberAnimation { properties:"y"; duration: 200 } }
+ //opacity: Behavior { NumberAnimation { properties:"opacity"; duration: 200 } }
states: [
- State{ name: "SpawnState"; when: spawning == true && dying == false
+ State{ name: "AliveState"; when: spawned == true && dying == false
SetProperties { target: block; opacity: 1 }
},
State{ name: "DeathState"; when: dying == true