mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
7f718503bd
- 复活角色 - 将cancelable全改为默认true - move私有牌堆的未知牌时不再显示错误 - 处理区牌增加大多数脚注 - 装备栏有宝物时压缩间距 - 使用虚拟牌时处理区有虚拟名字 - 带详细描述的选择框 - 武将一览界面显示技能语音、胜利语音、死亡语音
76 lines
1.4 KiB
QML
76 lines
1.4 KiB
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 16
|
|
signal finished()
|
|
|
|
Text {
|
|
text: qsTr("help_text")
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: qsTr("username")
|
|
}
|
|
TextField {
|
|
id: userName
|
|
font.pixelSize: 18
|
|
text: modConfig.userName
|
|
Layout.fillWidth: true
|
|
onTextChanged: {
|
|
modConfig.userName = text;
|
|
modConfig.saveConf();
|
|
}
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
anchors.rightMargin: 8
|
|
spacing: 16
|
|
Text {
|
|
text: qsTr("email")
|
|
}
|
|
TextField {
|
|
id: emailAddr
|
|
font.pixelSize: 18
|
|
Layout.fillWidth: true
|
|
text: modConfig.email
|
|
onTextChanged: {
|
|
modConfig.email = text;
|
|
modConfig.saveConf();
|
|
}
|
|
}
|
|
}
|
|
|
|
Text {
|
|
text: qsTr("key_help_text")
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.WordWrap
|
|
textFormat: Text.RichText
|
|
onLinkActivated: Qt.openUrlExternally(link);
|
|
}
|
|
|
|
Button {
|
|
text: qsTr("copy pubkey")
|
|
Layout.fillWidth: true
|
|
onClicked: {
|
|
const key = "mymod/id_rsa.pub";
|
|
if (!Backend.exists(key)) {
|
|
ModBackend.initKey();
|
|
}
|
|
const pubkey = ModBackend.readFile(key);
|
|
Backend.copyToClipboard(pubkey);
|
|
toast.show(qsTr("pubkey copied"));
|
|
}
|
|
}
|
|
}
|