mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
e8aacf1888
1. 新增隐藏礼物选项
2. 无效技能ui显示🔒
3. 过期房间字符串显示删除线
5. 按钮键长按查看技能详情
6. 筛选房间功能
7. “禁用lua扩展”禁用
8. 调整服务器“从收藏移除”的ui,改为三点展开
9. 调整红温缩进
10. 房间内限制玩家名称长度(自己除外)
11. 玩家详情显示判定区
12. 房间内一览
13. 武将一览语音键增加按钮复制代码与文本(长按复制代码),悬停显示
14. 手牌排序多选:(默认)类型、点数、花色
15. 技能次数提示,指定为正数或0显示
16. 修复ArrangeCardsBox的报错
17. 手牌拖拽排序
18. 武将技能按顺序添加
82 lines
1.7 KiB
QML
82 lines
1.7 KiB
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
|
|
Item {
|
|
objectName: "ModesOverview"
|
|
RowLayout {
|
|
anchors.fill: parent
|
|
spacing: 10
|
|
|
|
ListView {
|
|
id: listView
|
|
clip: true
|
|
width: parent.width * 0.2
|
|
height: parent.height
|
|
model: ListModel {
|
|
id: modeList
|
|
}
|
|
highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
|
|
delegate: Item {
|
|
width: parent.width
|
|
height: 40
|
|
|
|
Text {
|
|
text: name
|
|
anchors.centerIn: parent
|
|
}
|
|
|
|
TapHandler {
|
|
onTapped: {
|
|
listView.currentIndex = index;
|
|
detailFlickable.contentY = 0; // 重置滚动条
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
color: "#88EEEEEE"
|
|
Flickable {
|
|
id: detailFlickable
|
|
width: parent.width - 16
|
|
height: parent.height - 16
|
|
anchors.centerIn: parent
|
|
contentHeight: modeDesc.height
|
|
ScrollBar.vertical: ScrollBar {}
|
|
clip: true
|
|
|
|
Text {
|
|
id: modeDesc
|
|
width: parent.width - 16
|
|
wrapMode: Text.WordWrap
|
|
text: luatr(":" + modeList.get(listView.currentIndex).orig_name)
|
|
textFormat: Text.MarkdownText
|
|
font.pixelSize: 16
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Button {
|
|
text: luatr("Quit")
|
|
anchors.bottom: parent.bottom
|
|
visible: mainStack.currentItem.objectName === "ModesOverview"
|
|
onClicked: {
|
|
mainStack.pop();
|
|
}
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
const mode_data = lcall("GetGameModes");
|
|
for (let d of mode_data) {
|
|
modeList.append(d);
|
|
}
|
|
listView.currentIndex = 0;
|
|
}
|
|
}
|