-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add ability to exit tutorial early - Update and clarify many of the tutorials
- Loading branch information
Showing
12 changed files
with
289 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import QtQuick 2.7 | ||
|
||
// rectangle for description texts | ||
Rectangle { | ||
property alias text: textBox.text | ||
property alias cancelVisible: cancelIcon.visible | ||
property int innerWidth; | ||
signal clicked | ||
|
||
anchors.horizontalCenter: parent.horizontalCenter | ||
anchors.bottom: parent.bottom | ||
anchors.bottomMargin: 70 | ||
width: textBox.width + 30 | ||
height: textBox.height + 8 | ||
border.color: "black" | ||
border.width: 3 | ||
smooth: true | ||
//opacity: 0.9 | ||
z: 10000 | ||
color: "#FF707070" | ||
|
||
Image { | ||
id: cancelIcon | ||
anchors.bottom: parent.bottom | ||
anchors.bottomMargin: 5 | ||
anchors.right: parent.right | ||
anchors.rightMargin: 5 | ||
source: "qrc:/MO/gui/multiply_red" | ||
|
||
SequentialAnimation on opacity { | ||
loops: Animation.Infinite | ||
|
||
PauseAnimation { duration: 500 } | ||
PropertyAnimation { easing.type: Easing.InOutSine; duration: 400; to: 0.0 } | ||
PropertyAnimation { easing.type: Easing.OutInSine; duration: 400; to: 1.0 } | ||
} | ||
} | ||
|
||
Text { | ||
id: textBox | ||
text: "Exit Tutorial" | ||
font.pointSize: 12 | ||
font.bold: false | ||
width: innerWidth | ||
font.family: "Courier" | ||
wrapMode: Text.WordWrap | ||
anchors.centerIn: parent | ||
} | ||
|
||
MouseArea { | ||
id: clickArea | ||
anchors.fill: parent | ||
onClicked: parent.clicked() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.