GameMenuBottom.qml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
  2. import QtQuick 1.1
  3. Row {
  4. anchors.horizontalCenter: suspectlist.horizontalCenter
  5. anchors.top: suspectlist.bottom
  6. anchors.topMargin: 16
  7. spacing: 65
  8. Image {
  9. source: "icons/list_num.png"
  10. MouseArea {
  11. id: scoreboardButton
  12. anchors.fill: parent
  13. onClicked: {
  14. openScoreboard();
  15. scoreboardSheet.open();
  16. }
  17. }
  18. Text {
  19. font.pixelSize: 14
  20. font.weight: Font.Bold
  21. color: "#ffffff"
  22. style: Text.Outline
  23. text: qsTr("__TOPLIST__") + emptyString
  24. anchors.top: parent.bottom
  25. anchors.left: parent.left
  26. anchors.leftMargin: 3
  27. anchors.topMargin: 2
  28. width:parent.width-3
  29. horizontalAlignment: Text.AlignHCenter
  30. }
  31. }
  32. Image {
  33. source: hasWon ? "icons/doc_export.png" : "icons/playback_reload.png"
  34. MouseArea {
  35. id: resetButton
  36. anchors.fill: parent
  37. onClicked: {
  38. if (isPlaying) {
  39. resetDialog.open();
  40. } else {
  41. reset();
  42. }
  43. }
  44. }
  45. Text {
  46. font.pixelSize: 14
  47. font.weight: Font.Bold
  48. color: "#ffffff"
  49. style: Text.Outline
  50. text: hasWon ? (qsTr("__NEXTCASE__") + emptyString) : (qsTr("__RESTART__") + emptyString)
  51. anchors.top: parent.bottom
  52. anchors.left: parent.left
  53. anchors.leftMargin: 3
  54. anchors.topMargin: 2
  55. width:parent.width-3
  56. horizontalAlignment: Text.AlignHCenter
  57. }
  58. }
  59. Image {
  60. opacity: isPlaying ? 1 : 0
  61. source: solveMode ? "icons/cancel.png" : "icons/lightbulb.png"
  62. MouseArea {
  63. id: toggleSolveButton
  64. anchors.fill: parent
  65. onClicked: {
  66. toggleSolve();
  67. }
  68. }
  69. Text {
  70. font.pixelSize: 14
  71. font.weight: Font.Bold
  72. color: "#ffffff"
  73. style: Text.Outline
  74. text: (solveMode ? qsTr("__CANCEL__") : qsTr("__SOLVE__")) + emptyString
  75. anchors.top: parent.bottom
  76. anchors.left: parent.left
  77. anchors.leftMargin: 3
  78. anchors.topMargin: 2
  79. width:parent.width-3
  80. horizontalAlignment: Text.AlignHCenter
  81. }
  82. }
  83. }