Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- import VPlay 1.0
- Scene {
- id: splashScene
- width: 480
- height: 320
- Rectangle {
- color: "green"
- anchors.fill: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: {
- if (gameWindow.activeScene === splashScene) {
- console.log("onClick called")
- splashScene.opacity = 0
- starmapScene.opacity = 1
- }
- }
- }
- // Custom font loading of ttf fonts
- FontLoader {
- id: fontHUD
- source: "fonts/Anton.ttf"
- }
- Text {
- anchors.centerIn: parent
- text: "Path to Orion"
- font.family: fontHUD.name
- font.pixelSize: 18
- color: "white"
- }
- transitions: [
- Transition {
- NumberAnimation {
- property: "opacity"
- easing.type: Easing.InOutQuad
- duration: 10000
- }
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement