InfoScreen.qml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. import Qt 4.7
  2. import "scripts.js" as Game
  3. Rectangle {
  4. id: rectangle2
  5. x: 0
  6. y: 0
  7. width: 360
  8. height: 640
  9. color: "#000000"
  10. Image {
  11. id: image1
  12. x: 0
  13. y: 0
  14. width: parent.width
  15. height: parent.height
  16. source: "images/bg.jpg"
  17. }
  18. Image {
  19. id: homeBtn
  20. anchors.bottom: parent.bottom
  21. anchors.bottomMargin: 5
  22. anchors.horizontalCenter: parent.horizontalCenter
  23. height: 64
  24. width: 64
  25. z: 2
  26. source: "images/homebtn.png"
  27. opacity: 1
  28. MouseArea {
  29. anchors.fill : parent
  30. onPressed: parent.source = "images/homebtn2.png"
  31. onReleased: parent.source = "images/homebtn.png"
  32. onClicked: {
  33. Game.setState("")
  34. }
  35. }
  36. }
  37. Text {
  38. id: text2
  39. color: "#ffffff"
  40. text: "How to play?"
  41. font.pixelSize: 34
  42. anchors.topMargin: 10
  43. anchors.horizontalCenter: parent.horizontalCenter
  44. anchors.top: parent.top
  45. }
  46. Item {
  47. id: item1
  48. anchors.fill: parent
  49. Text {
  50. id: text3
  51. x: 75
  52. color: "#ffffff"
  53. text: "When you see monkey in the hole,
  54. press it before it goes away.
  55. If you miss three monkeys or
  56. the screen fills, you lose the game.
  57. Blue monkey - 1 point
  58. Violet monkey - 2 points
  59. Yellow monkey - 3 points"
  60. font.pixelSize: 23
  61. anchors.fill: parent
  62. anchors.top: parent.top
  63. anchors.topMargin: 80
  64. anchors.horizontalCenter: parent.horizontalCenter
  65. smooth: false
  66. font.bold: false
  67. verticalAlignment: Text.AlignTop
  68. horizontalAlignment: Text.AlignHCenter
  69. wrapMode: Text.WordWrap
  70. }
  71. Text {
  72. id: text1
  73. x: 46
  74. y: 627
  75. color: "#ffffff"
  76. text: "About application
  77. Developer - JiiKoo / Juuso Kosonen
  78. Name - Hit the Monkey 2 (v2.0.1)
  79. More info - http://www.jiikoo.com"
  80. font.pixelSize: 20
  81. anchors.horizontalCenter: parent.horizontalCenter
  82. anchors.bottom: parent.bottom
  83. anchors.bottomMargin: 120
  84. }
  85. }
  86. }