diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-10-04 14:39:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-05 07:33:29 +0200 |
commit | e225ee5a6a50400fc02536e511b1e10f3d53f110 (patch) | |
tree | c58033dd8fc3032838952ed8e592c5bec500bce8 /examples/declarative/particles | |
parent | a274134dc511263a3ccd086205829e911ecd3aae (diff) |
Split GroupGoal out of SpriteGoal
Leaving SpriteGoal alone for a few weeks with a deprecation message, but
a functioning GroupGoal has been added.
Change-Id: I395046c00526e7caa38bdbc499a8191308c476fa
Reviewed-on: http://codereview.qt-project.org/5950
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples/declarative/particles')
-rw-r--r-- | examples/declarative/particles/affectors/groupgoal.qml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/declarative/particles/affectors/groupgoal.qml b/examples/declarative/particles/affectors/groupgoal.qml index 35febf3353..836392cdd4 100644 --- a/examples/declarative/particles/affectors/groupgoal.qml +++ b/examples/declarative/particles/affectors/groupgoal.qml @@ -67,11 +67,10 @@ Rectangle { colorVariation: 0.1 color: "#2060160f" } - SpriteGoal { + GroupGoal { whenCollidingWith: ["lit"] goalState: "lighting" jump: true - systemStates: true } } ParticleGroup { @@ -163,11 +162,10 @@ Rectangle { sizeVariation: 2 endSize: 0 speed: PointDirection { y:-100; yVariation: 4; xVariation: 4 } - SpriteGoal { + GroupGoal { groups: ["unlit"] goalState: "lit" jump: true - systemStates: true system: particles x: -15 y: -55 @@ -177,11 +175,10 @@ Rectangle { } } //Click to enflame - SpriteGoal {//TODO: Aux emiiters in the state definition (which allows the occasional ball to spontaneously combust) + GroupGoal { groups: ["unlit"] goalState: "lighting" jump: true - systemStates: true enabled: ma.pressed width: 18 height: 18 |