mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
4b1c43f4c9
1. 头像界面更换头像和密码增加计时器 2. 武将界面增加设为头像,搜索框文字输入栏微调 3. 整理手牌将不同的pile分开 4. askForCard(s)Chosen自由prompt 5. 开大动画区分主将副将,特化语音 6. 观星框显示卡牌标记 7. 禁止打出修复 8. random_ai禁止技修复 9. 记录器整局游戏修复 10. 禁止亮将修复封杀已亮的将
95 lines
1.9 KiB
QML
95 lines
1.9 KiB
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
// anchors.centerIn: parent
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: Backend.translate("Username")
|
|
}
|
|
Text {
|
|
text: Self.screenName
|
|
font.pixelSize: 18
|
|
}
|
|
}
|
|
|
|
Timer {
|
|
id: opTimer
|
|
interval: 1000
|
|
}
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: Backend.translate("Avatar")
|
|
}
|
|
TextField {
|
|
id: avatarName
|
|
maximumLength: 64
|
|
font.pixelSize: 18
|
|
text: Self.avatar
|
|
Layout.fillWidth: true
|
|
}
|
|
Button {
|
|
text: Backend.translate("Update Avatar")
|
|
enabled: avatarName.text !== "" && !opTimer.running
|
|
onClicked: {
|
|
mainWindow.busy = true;
|
|
opTimer.start();
|
|
ClientInstance.notifyServer(
|
|
"UpdateAvatar",
|
|
JSON.stringify([avatarName.text])
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: Backend.translate("Old Password")
|
|
}
|
|
TextField {
|
|
id: oldPassword
|
|
echoMode: TextInput.Password
|
|
passwordCharacter: "*"
|
|
Layout.rightMargin: 16
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: Backend.translate("New Password")
|
|
}
|
|
TextField {
|
|
id: newPassword
|
|
echoMode: TextInput.Password
|
|
passwordCharacter: "*"
|
|
Layout.fillWidth: true
|
|
}
|
|
Button {
|
|
text: Backend.translate("Update Password")
|
|
enabled: oldPassword.text !== "" && newPassword.text !== "" && !opTimer.running
|
|
onClicked: {
|
|
mainWindow.busy = true;
|
|
opTimer.start();
|
|
ClientInstance.notifyServer(
|
|
"UpdatePassword",
|
|
JSON.stringify([oldPassword.text, newPassword.text])
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|