Skip to content
Snippets Groups Projects
Commit 4ec14000 authored by Pouchet Pierre's avatar Pouchet Pierre
Browse files

Affichage de la langue choisie

parent a5c49941
Branches
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import QtQuick
Item {
width: 200
height: 100
property alias rectangleColor: rectangle.color
property alias _textText: _text.text
......@@ -12,7 +13,7 @@ Item {
y: 0
width: 200
height: 100
color: "#7a7a7a"
color: rectangleColor
radius: 10
border.color: "#ffffff"
border.width: 5
......
......@@ -240,6 +240,7 @@ Window {
id: langageButton
anchors.horizontalCenter: parent.horizontalCenter
_textText: "Français"
rectangleColor: "#7a7a7a"
MouseArea {
anchors.left: parent.left
anchors.top: parent.top
......@@ -247,19 +248,26 @@ Window {
anchors.horizontalCenter: parent.horizontalCenter
cursorShape: Qt.PointingHandCursor
onClicked: {
motusGame.dictionnaryChoosed = "Motus\\mots_francais_bis.txt";
langageButton2.rectangleColor= "#7a7a7a";
langageButton.rectangleColor= "green";
}
}
}
LangageButton {
id: langageButton2
anchors.horizontalCenter: parent.horizontalCenter
_textText: "English"
rectangleColor: "green"
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
motusGame.dictionnaryChoosed = "Motus\\words_alpha.txt";
langageButton2.rectangleColor= "green";
langageButton.rectangleColor= "#7a7a7a";
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment