FreeKill/Fk/ModMaker/CreateSomething.qml
notify 7f718503bd
Misc (#184)
- 复活角色
- 将cancelable全改为默认true
- move私有牌堆的未知牌时不再显示错误
- 处理区牌增加大多数脚注
- 装备栏有宝物时压缩间距
- 使用虚拟牌时处理区有虚拟名字
- 带详细描述的选择框
- 武将一览界面显示技能语音、胜利语音、死亡语音
2023-06-10 02:18:51 +08:00

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();
}
}
}