Durdles - 2-Player Action Game
import Felgo 4.0
import QtQuick 2.0
import "../common"
import ".."
SceneBase {
id:settingScene
Image {
z: -2
id: background
source: Qt.resolvedUrl("../../assets/img/SettingsBG.png")
anchors.centerIn: parent
scale: 0.5
}
MenuButton {
label.height: 45
label.width: 45
label.source: Qt.resolvedUrl("../../assets/img/Back.png")
color: "transparent"
z: 10
anchors.right: gameWindowAnchorItem.right
anchors.verticalCenter: gameWindowAnchorItem.verticalCenter
onClicked: settingScene.backButtonPressed()
}
Column {
anchors.top: parent.top
anchors.topMargin: 20
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width - 40
spacing: 20
Text {
font.family: standardFont.name
font.pixelSize: 36
text: "Settings"
color: "black"
}
Text {
font.family: standardFont.name
font.pixelSize: 24
text: "Shot Control"
color: "black"
}
Text {
font.family: standardFont.name
font.pixelSize: 24
text: "Background Music"
color: "black"
}
Text {
font.family: standardFont.name
font.pixelSize: 24
text: "Sound Effects"
color: "black"
}
}
Column {
anchors.right: parent.right
anchors.rightMargin: 20
anchors.top: parent.top
anchors.topMargin: 77
spacing: 8
MenuButton {
label.source: active ? "../../assets/img/Switch_Hard.png" : "../../assets/img/Switch_Easy.png"
active: !GameInfo.easyMode
opacity: 1
onClicked: {
GameInfo.easyMode ^= true
}
width: 90
height: 40
}
MenuButton {
width: 90
height: 40
label.source: active ? "../../assets/img/Switch_Off.png" : "../../assets/img/Switch_On.png"
active: ! settings.musicEnabled
opacity: 1
onClicked: {
settings.musicEnabled ^= true
}
}
MenuButton {
width: 90
height: 40
label.source: active ? "../../assets/img/Switch_Off.png" : "../../assets/img/Switch_On.png"
active: ! settings.soundEnabled
opacity: 1
onClicked: {
settings.soundEnabled ^= true
}