2023-04-28 18:24:31 +08:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
RowLayout {
|
|
|
|
anchors.rightMargin: 8
|
|
|
|
spacing: 16
|
|
|
|
Text {
|
2024-01-25 03:23:29 +08:00
|
|
|
text: luatr("BGM Volume")
|
2023-04-28 18:24:31 +08:00
|
|
|
}
|
|
|
|
Slider {
|
2023-10-27 22:53:25 +08:00
|
|
|
Layout.rightMargin: 16
|
|
|
|
Layout.fillWidth: true
|
2023-04-28 18:24:31 +08:00
|
|
|
from: 0
|
|
|
|
to: 100
|
|
|
|
value: config.bgmVolume
|
|
|
|
onValueChanged: config.bgmVolume = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.rightMargin: 8
|
|
|
|
spacing: 16
|
|
|
|
Text {
|
2024-01-25 03:23:29 +08:00
|
|
|
text: luatr("Effect Volume")
|
2023-04-28 18:24:31 +08:00
|
|
|
}
|
|
|
|
Slider {
|
2023-10-27 22:53:25 +08:00
|
|
|
Layout.rightMargin: 16
|
|
|
|
Layout.fillWidth: true
|
2023-04-28 18:24:31 +08:00
|
|
|
from: 0
|
|
|
|
to: 100
|
|
|
|
value: Backend.volume
|
|
|
|
onValueChanged: Backend.volume = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-07 14:43:39 +08:00
|
|
|
Grid {
|
|
|
|
columns: 2
|
|
|
|
|
2023-04-28 19:19:45 +08:00
|
|
|
Switch {
|
2024-01-25 03:23:29 +08:00
|
|
|
text: luatr("Disable message audio")
|
2023-04-28 18:24:31 +08:00
|
|
|
checked: config.disableMsgAudio
|
|
|
|
onCheckedChanged: config.disableMsgAudio = checked;
|
|
|
|
}
|
2023-06-24 14:48:49 +08:00
|
|
|
|
|
|
|
Switch {
|
2024-01-25 03:23:29 +08:00
|
|
|
text: luatr("Hide unselectable cards")
|
2023-06-24 14:48:49 +08:00
|
|
|
checked: config.hideUseless
|
|
|
|
onCheckedChanged: {
|
|
|
|
config.hideUseless = checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-07 14:43:39 +08:00
|
|
|
Switch {
|
|
|
|
text: luatr("Hide observer chatter")
|
|
|
|
checked: config.hideObserverChatter
|
|
|
|
onCheckedChanged: {
|
|
|
|
config.hideObserverChatter = checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: luatr("Rotate table card")
|
|
|
|
checked: config.rotateTableCard
|
|
|
|
onCheckedChanged: {
|
|
|
|
config.rotateTableCard = checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-18 23:53:38 +08:00
|
|
|
Switch {
|
|
|
|
text: luatr("Hide presents")
|
|
|
|
checked: config.hidePresents
|
|
|
|
onCheckedChanged: {
|
|
|
|
config.hidePresents = checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-07 14:43:39 +08:00
|
|
|
}
|
2023-04-28 18:24:31 +08:00
|
|
|
}
|