aboutsummaryrefslogtreecommitdiffstats
path: root/demos/declarative/plasmapatrol/content/Cruiser.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-06-08 13:19:56 +1000
committerAlan Alpert <alan.alpert@nokia.com>2011-06-08 13:28:21 +1000
commit1f88f2ceedf00f96e2491ecdd1c655b0f12f3632 (patch)
tree1900da1a3793da99f9601762d337cf82dc4701ce /demos/declarative/plasmapatrol/content/Cruiser.qml
parent984f21f18d1a3981e7363df467ff2e24e69aa847 (diff)
Immense Particles Refactor Part C
Demos work again (also, the examples I missed). Added an example launcher for particles.
Diffstat (limited to 'demos/declarative/plasmapatrol/content/Cruiser.qml')
-rw-r--r--demos/declarative/plasmapatrol/content/Cruiser.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/declarative/plasmapatrol/content/Cruiser.qml b/demos/declarative/plasmapatrol/content/Cruiser.qml
index 8b8073328e..71af0abffa 100644
--- a/demos/declarative/plasmapatrol/content/Cruiser.qml
+++ b/demos/declarative/plasmapatrol/content/Cruiser.qml
@@ -39,7 +39,7 @@
**
****************************************************************************/
import QtQuick 2.0
-import Qt.labs.particles 2.0
+import QtQuick.Particles 2.0
Item {
id: container
@@ -54,7 +54,7 @@ Item {
property int gunType: 0
width: 128
height: 128
- TrailEmitter{
+ Emitter{
//TODO: Cooler would be an 'orbiting' affector
//TODO: On the subject, opacity and size should be grouped type 'overLife' if we can cram that in the particles
system: container.system
@@ -62,7 +62,7 @@ Item {
anchors.centerIn: parent
width: 64
height: 64
- shape: Ellipse{}
+ shape: EllipseShape{}
particlesPerSecond: hp > 0 ? hp * 1 + 20 : 0
particleDuration: 2400
@@ -72,13 +72,13 @@ Item {
particleSizeVariation: 16
particleEndSize: 16
- speed: AngleVector{angleVariation:360; magnitudeVariation: 32}
+ speed: AngledDirection{angleVariation:360; magnitudeVariation: 32}
}
- TrailEmitter{
+ Emitter{
system: container.system
particle: "cruiserArmor"
anchors.fill: parent
- shape: Ellipse{ fill: false }
+ shape: EllipseShape{ fill: false }
emitting: hp>0
particlesPerSecond: 16