jianyu/qml/fuzhu.qml

56 lines
1.1 KiB
QML
Raw Normal View History

2024-04-09 06:33:15 +00:00
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Fk.Pages
import Fk.RoomElement
GraphicsBox {
id: root
title.text: Backend.translate("输入技能名")
width: 300
height: 100
ColumnLayout {
anchors.fill: parent
anchors.topMargin: 40
anchors.leftMargin: 20
anchors.rightMargin: 20
anchors.bottomMargin: 40
2024-04-18 03:28:04 +00:00
RowLayout {
anchors.rightMargin: 8
spacing: 16
2024-04-09 06:33:15 +00:00
TextField {
id: word
2024-04-18 03:28:04 +00:00
maximumLength: 12
2024-04-09 06:33:15 +00:00
placeholderText: "技能名"
clip: true
verticalAlignment: Qt.AlignVCenter
background: Rectangle {
implicitHeight: 16
implicitWidth: 120
color: "white"
}
}
ToolButton {
text: "确定"
enabled: word.text !== ""
background: Rectangle {
implicitHeight: 16
implicitWidth: 120
color: "grey"
}
onClicked: {
close();
roomScene.state = "notactive";
ClientInstance.replyToServer("", word.text);
}
}
}
}
}