Includes upgrading the bird sprite to stochastic behavior
Change-Id: I6357f6a47ded0a18ad0746c3eef590ee9092db52
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
front.visible = frontShown
}
- Rectangle {
- anchors.fill: parent
- color: "white"
- }
-
function flipUp(start) {
effect.visible = true;
effect.sourceA = effect.source1
}
}
- AnimatedSprite {
+ SpriteSequence {
id: sprite
anchors.horizontalCenter: parent.horizontalCenter
width: 320
height: 300
- source: "resources/bird-anim-sprites.png"
- frameCount: 6
- frameRate: 3
- frameWidth: 320
- frameHeight: 360
running: true
+ interpolate: false
+ Sprite {
+ name: "bird"
+ source: "resources/bird-anim-sprites.png"
+ frameCount: 1
+ frameRate: 1
+ frameWidth: 320
+ frameHeight: 300
+ to: { "bird":10, "trill":1, "blink":1 }
+ }
+ Sprite {
+ name: "trill"
+ source: "resources/bird-anim-sprites.png"
+ frameCount: 5
+ frameRate: 3
+ frameWidth: 320
+ frameHeight: 300
+ to: {"bird":1}
+ }
+ Sprite {
+ name: "blink"
+ source: "resources/bird-anim-sprites.png"
+ frameCount: 1
+ frameRate: 3
+ frameWidth: 320
+ frameHeight: 300
+ frameX: 1600
+ to: {"bird":1}
+ }
}
}
}
Text {
id: label
anchors.verticalCenter: arrow.verticalCenter
- text: "Pull to refresh"
- font.pixelSize: 20
- color: "#c1c1c1"
+ text: "Pull to refresh... "
+ font.pixelSize: 18
+ color: "#999999"
}
}
},
State {
name: "pulled"; when: mainListView.contentY < -120
- PropertyChanges { target: label; text: "Release to refresh" }
+ PropertyChanges { target: label; text: "Release to refresh..." }
PropertyChanges { target: arrow; rotation: 0 }
}
]
id: main
width: 320
height: 480
+ color: "#d6d6d6"
property string searchTerms: ""
property int inAnimDur: 250