HighScoreScreen.qml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import Qt 4.7
  2. import "scripts.js" as Game
  3. Rectangle {
  4. id: rectangle2
  5. x: 0
  6. y: 0
  7. width: 480
  8. height: 800
  9. color: "#000000"
  10. property alias highscores : dialogText.text
  11. property string username
  12. property string password
  13. Image {
  14. id: image1
  15. x: 0
  16. y: 0
  17. width: parent.width
  18. height: parent.height
  19. source: "images/bg.jpg"
  20. }
  21. Text {
  22. id: text1
  23. color: "#ffffff"
  24. text: "High Scores"
  25. font.pixelSize: 25
  26. anchors.horizontalCenter: parent.horizontalCenter
  27. font.family: "MS Shell Dlg 2"
  28. anchors.topMargin: 10
  29. anchors.top: parent.top
  30. }
  31. Text { id: dialogText; color: "#ffffff"; text: "" ; font.pixelSize: 22; anchors.left: parent.left; anchors.leftMargin: 50; anchors.top: parent.top; anchors.topMargin: 100; }
  32. Image {
  33. id: homeBtn
  34. anchors.bottom: parent.bottom
  35. anchors.bottomMargin: 5
  36. anchors.horizontalCenter: parent.horizontalCenter
  37. height: 90
  38. width: 90
  39. z: 2
  40. source: "images/homebtn.png"
  41. opacity: 1
  42. MouseArea {
  43. anchors.fill : parent
  44. onPressed: parent.source = "images/homebtn2.png"
  45. onReleased: parent.source = "images/homebtn.png"
  46. onClicked: {
  47. Game.setState("");
  48. }
  49. }
  50. }
  51. }