mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
0745863863
- 游戏结束时离线玩家增加逃率 - 退出房间时取消准备状态 - 副技能的 `main_skill` - 预亮相关优化 - 自定义身份,图从拓展包随便找一张 - 无懈可击使用时带1200毫秒延迟 - 未开始的房间显示开启的所有牌堆,衍生牌灰色字体化 - 可以随意打开fk.rep文件并播放录像 - 服务器Shell新增重置密码命令
37 lines
617 B
QML
37 lines
617 B
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
Repeater {
|
|
id: rep
|
|
model: ListModel {
|
|
id: skills
|
|
}
|
|
LimitSkillItem {
|
|
skillname: skillname_
|
|
usedtimes: times
|
|
}
|
|
}
|
|
|
|
function update(skill, times) {
|
|
for (let i = 0; i < rep.count; i++) {
|
|
const data = skills.get(i);
|
|
if (data.skillname_ === skill) {
|
|
data.times = times;
|
|
if (times == -1) {
|
|
skills.remove(i);
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
skills.append({
|
|
skillname_: skill,
|
|
times: times,
|
|
});
|
|
}
|
|
}
|