mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
4235bf6237
1. 改进processPrompt,支持双将和暗将 2. 副将长名旋转 3. 国战体力上限优化,包括一览和选将框 4. 空格添加结束出牌阶段,Escape键呼出菜单 5. 武将一览左栏文本换行 6. 同名替换影响已选择的武将 7. 再次排序手牌时按照点数排序 8. Logic.js翻译 9. 进入房间翻译删去句号,跟房间内其他toast风格统一 10. 常见疑问最后一张“下一条”改为“OK!” 11. 录像回放“从文件打开”翻译 12. interaction自动弹出和关闭,comboBox补技能名 13. 卡牌音效添加装备效果音效和使用音效,小小重构 14. activeSkill的prompt的selected_targets实装 15. 禁用扩展包文本ui限制长度 16. 右键技能呼出气泡 Qsgs-Fans/freekill-core#3
79 lines
1.5 KiB
QML
79 lines
1.5 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: view.currentIndex + 1 == total ? qsTr("OK!") : qsTr("Next")
|
|
enabled: view.currentIndex + 1 <= total
|
|
onClicked: {
|
|
if (view.currentIndex + 1 == total) {
|
|
mainStack.pop();
|
|
} else {
|
|
view.currentIndex++
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|