Advertisement
Guest User

Untitled

a guest
Sep 8th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. import QtQuick 1.1
  2. import VPlay 1.0
  3.  
  4. Scene {
  5. id: splashScene
  6. width: 480
  7. height: 320
  8.  
  9. Rectangle {
  10. color: "green"
  11. anchors.fill: parent
  12. }
  13.  
  14. MouseArea {
  15. anchors.fill: parent
  16. onClicked: {
  17. if (gameWindow.activeScene === splashScene) {
  18. console.log("onClick called")
  19. splashScene.opacity = 0
  20. starmapScene.opacity = 1
  21. }
  22. }
  23. }
  24.  
  25.  
  26. // Custom font loading of ttf fonts
  27. FontLoader {
  28. id: fontHUD
  29. source: "fonts/Anton.ttf"
  30. }
  31.  
  32. Text {
  33. anchors.centerIn: parent
  34.  
  35. text: "Path to Orion"
  36. font.family: fontHUD.name
  37. font.pixelSize: 18
  38. color: "white"
  39. }
  40.  
  41. transitions: [
  42. Transition {
  43. NumberAnimation {
  44. property: "opacity"
  45. easing.type: Easing.InOutQuad
  46. duration: 10000
  47. }
  48. }
  49. ]
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement