mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
f97df65ac6
- 修复录像负数时间bug - 修复域名无法读取服务器信息bug - 加入服务器界面的UI稍微优化 - 大厅聊天的UI稍微优化 - 添加时机“出牌阶段空闲时间点开始时”,可以在此时设置一些提示性标记 - 修复请求处理协程只要遇到error直接炸服的bug - 添加手牌选择器,能在手牌非常多时帮助玩家选卡
73 lines
1.4 KiB
QML
73 lines
1.4 KiB
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
Rectangle {
|
|
id: root
|
|
color: "#CCEEEEEE"
|
|
property int total: 7
|
|
|
|
SwipeView {
|
|
id: view
|
|
anchors.fill: parent
|
|
|
|
Repeater {
|
|
model: total
|
|
Item {
|
|
Text {
|
|
text: qsTr("tutor_msg_" + (modelData + 1))
|
|
font.pixelSize: 32
|
|
wrapMode: Text.WordWrap
|
|
anchors.centerIn: parent
|
|
width: parent.width * 0.7
|
|
horizontalAlignment: Text.AlignHCenter
|
|
textFormat: Text.RichText
|
|
onLinkActivated: Qt.openUrlExternally(link);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/*
|
|
PageIndicator {
|
|
id: indicator
|
|
|
|
count: total
|
|
currentIndex: view.currentIndex
|
|
|
|
anchors.bottom: parent.bottom
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
}
|
|
*/
|
|
|
|
Row {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 20
|
|
spacing: 8
|
|
Text {
|
|
text: (view.currentIndex + 1) + "/" + total
|
|
font.pixelSize: 36
|
|
}
|
|
|
|
Button {
|
|
text: qsTr("Skip")
|
|
onClicked: mainStack.pop();
|
|
}
|
|
|
|
Button {
|
|
text: qsTr("Prev")
|
|
enabled: view.currentIndex > 0
|
|
onClicked: view.currentIndex--
|
|
}
|
|
|
|
Button {
|
|
text: qsTr("Next")
|
|
enabled: view.currentIndex + 1 < total
|
|
onClicked: view.currentIndex++
|
|
}
|
|
}
|
|
}
|