qmlfrontend/main.qml
author Wuzzy <Wuzzy2@mail.ru>
Fri, 09 Mar 2018 19:05:59 +0100
changeset 13145 5083fb0a2992
parent 12854 28cb18c5e712
child 12883 adb1fccc706a
child 14164 745c73e0e644
permissions -rw-r--r--
A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values This assumes the worst case in which the team file is missing all campaign variables except Progress. This has been successfully tested with all 10 missions and still generates a logical storyline. By default, the game assumes: - The cyborg's offer in mission 2 was refused - The traitor in mission 5 was killed As a consequence, missions 8 and 10 use the princessScene cut scene.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     1
import QtQuick 2.7
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     2
import QtQuick.Controls 2.0
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     3
import QtQuick.Layouts 1.3
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     4
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     5
ApplicationWindow {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     6
  visible: true
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     7
  width: 640
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     8
  height: 480
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     9
  title: qsTr("Hello World")
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    10
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    11
  SwipeView {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    12
    id: swipeView
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    13
    anchors.fill: parent
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    14
    currentIndex: tabBar.currentIndex
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    15
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    16
    Page1 {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    17
    }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    18
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    19
    Page {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    20
      Label {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    21
        text: qsTr("Second page")
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    22
        anchors.centerIn: parent
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    23
      }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    24
    }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    25
  }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    26
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    27
  footer: TabBar {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    28
    id: tabBar
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    29
    currentIndex: swipeView.currentIndex
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    30
    TabButton {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    31
      text: qsTr("First")
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    32
    }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    33
    TabButton {
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    34
      text: qsTr("Second")
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    35
    }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    36
  }
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    37
}