mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
7f718503bd
- 复活角色 - 将cancelable全改为默认true - move私有牌堆的未知牌时不再显示错误 - 处理区牌增加大多数脚注 - 装备栏有宝物时压缩间距 - 使用虚拟牌时处理区有虚拟名字 - 带详细描述的选择框 - 武将一览界面显示技能语音、胜利语音、死亡语音
51 lines
858 B
QML
51 lines
858 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
anchors.fill: parent
|
|
anchors.margins: 16
|
|
signal finished()
|
|
signal accepted(string result)
|
|
|
|
property string head
|
|
property string hint
|
|
|
|
Text {
|
|
text: qsTr(head)
|
|
font.pixelSize: 20
|
|
font.bold: true
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Text {
|
|
text: qsTr(hint)
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Text {
|
|
text: qsTr("validator_hint")
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
TextField {
|
|
id: edit
|
|
font.pixelSize: 18
|
|
Layout.fillWidth: true
|
|
validator: RegularExpressionValidator { regularExpression: /[0-9A-Za-z_]+/ }
|
|
}
|
|
|
|
Button {
|
|
text: "OK"
|
|
enabled: edit.text.length >= 4
|
|
onClicked: {
|
|
accepted(edit.text);
|
|
finished();
|
|
}
|
|
}
|
|
}
|