欢迎加入!

注册后,您将能够与我们社区的其他成员进行讨论、分享和私信。

无论您是想寻求帮助、分享经验,还是结识志同道合的朋友,我们都期待您的参与!一起探索更多精彩内容吧。

立即注册! 加入群聊
  • 如果您想上传您的收费插件,请准备好原创资料/或者原作者订单记录确保可以及时更新,然后联系版主即可上传啦!
  • 所有的插件永久包更新,如遇到购买不是最新版请立刻联系版主更新,所有插件均是原价的三折!
简单的 KDR UI

最新版 简单的 KDR UI 4.0.5

购买会员
原地址
SimpleKDR-ezgif.com-optimize(1).gif.1ec5900a4813c14ebdb13364787ceed7.gif
1528951962_50293425057378062010.69204139049259081197941382059247.gif.cafa79ad4e60c4e0ff86b58a358b3fa4.gif
1.jpg.f98ebac0caa63895f3c0847911dd2608.jpg
2.jpg.a3f8da804a502bf1d90158bdedafda73.jpg
3.jpg.06a709faa95b2cfcb92182c3c55f6d39.jpg
4.jpg.9ca23c12dd9217884f24d32e8d064a1b.jpg

关于Simple KDR UI​


Simple kill/death ratio counter. User interface is fully customizable, each panel can be disabled. For each screenshot shown there is config file available.CobaltFeatures.png.9f3dadc154d154c054e2f582c60858b9.png
  • 简单可定制的 KDR UI 界面
  • 可切换接口
  • 多用户自定义界面支持
  • 高性能插件
  • 即插即用 - 无依赖项或 Linq
有任何想法或问题吗?加入 Cobalt Studios Discord @ https://discord.gg/cobaltstudios
CobaltCommands.png.e40fd276c8e7d7cdabf1953fb19a0adc.png

播放器命令:
  • /hkd 或 /togglekdr - 禁用/启用 kdr UI
  • /skd 或 /switchkdr - 从配置中轮换多个自定义 KDR UI
    • Args — (可选)使用整数跳至特定 UI — 示例 — /skd 2
管理员命令:
  • /kdrwipe - 擦除所有 KDR 数据
CobaltPermissions.png.585e044bf3da6f8f339f800b16019191.png
玩家权限:
  • simplekdr.use - 允许使用所有播放器命令
  • simplekdr.hidden - 当玩家登录或使用 /hkd 命令时隐藏 KDR UI
管理员权限:
  • simplekdr.wipedata - 允许使用 /kdrwipe 命令
CobaltConfig.png.a506782424d088f98a8dac49337b94af.png

配置
{
"Reset data on wipe": true,
"Count NPC kills": false,
"Count suicides": true,
"Chat command to hide ui": [
"hidekdr",
"hkd",
"togglekdr"
],
"Chat command to switch ui": [
"switchkdr",
"skd"
],
"UI Panels": [
{
"Main UI Positon anchor/offset 'min x, min y', 'max x', max y'": [
"0.5 0.0",
"0.5 0.0",
"-580 5",
"-330 25"
],
"Panel Color": "0 0 0 0",
"Kills Panel": {
"Panel Color": "0 0 0 0",
"UI Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.0",
"0.30 1.0"
],
"Img": "https://i.postimg.cc/KYk0Mr9b/greenstripe.png",
"Icon Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.0",
"0.30 1.0"
],
"Text {0} = stat": "KILLS: <b>{0}</b>",
"Text Size": 10,
"Font": "robotocondensed-regular.ttf",
"Text Outline Thickness": "0",
"Text Outline Color": "1 1 1 1"
},
"Deaths Panel": {
"Panel Color": "0 0 0 0",
"UI Positon anchor 'min x, min y', 'max x', max y'": [
"0.33 0.0",
"0.63 1.0"
],
"Img": "https://i.postimg.cc/Wb58YfCj/redstripe.png",
"Icon Positon anchor 'min x, min y', 'max x', max y'": [
"0.33 0.0",
"0.63 1.0"
],
"Text {0} = stat": "DEATHS: <b>{1}</b>",
"Text Size": 10,
"Font": "robotocondensed-regular.ttf",
"Text Outline Thickness": "0",
"Text Outline Color": "1 1 1 1"
},
"Ratio Panel": {
"Panel Color": "0 0 0 0",
"UI Positon anchor 'min x, min y', 'max x', max y'": [
"0.66 0.0",
"1.0 1.0"
],
"Img": "https://i.postimg.cc/zBwSCdKs/bluestripe.png",
"Icon Positon anchor 'min x, min y', 'max x', max y'": [
"0.66 0.0",
"1.0 1.0"
],
"Text {0} = stat": "K/D: <b>{2}</b>",
"Text Size": 10,
"Font": "robotocondensed-regular.ttf",
"Text Outline Thickness": "0",
"Text Outline Color": "1 1 1 1"
}
},
{
"Main UI Positon anchor/offset 'min x, min y', 'max x', max y'": [
"0.5 0.0",
"0.5 0.0",
"185 18.5",
"250 75.5"
],
"Panel Color": "0 0 0 0",
"Kills Panel": {
"Panel Color": "0 0 0 0",
"UI Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.0",
"1.0 0.3"
],
"Img": "https://i.postimg.cc/KYk0Mr9b/greenstripe.png",
"Icon Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.0",
"1.0 0.3"
],
"Text {0} = stat": "KILLS: <b>{0}</b>",
"Text Size": 10,
"Font": "robotocondensed-regular.ttf",
"Text Outline Thickness": "0",
"Text Outline Color": "1 1 1 1"
},
"Deaths Panel": {
"Panel Color": "0 0 0 0",
"UI Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.33",
"1.0 0.63"
],
"Img": "https://i.postimg.cc/Wb58YfCj/redstripe.png",
"Icon Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.33",
"1.0 0.63"
],
"Text {0} = stat": "DEATHS: <b>{1}</b>",
"Text Size": 10,
"Font": "robotocondensed-regular.ttf",
"Text Outline Thickness": "0",
"Text Outline Color": "1 1 1 1"
},
"Ratio Panel": {
"Panel Color": "0 0 0 0",
"UI Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.66",
"1.0 1.0"
],
"Img": "https://i.postimg.cc/zBwSCdKs/bluestripe.png",
"Icon Positon anchor 'min x, min y', 'max x', max y'": [
"0.0 0.66",
"1.0 1.0"
],
"Text {0} = stat": "K/D: <b>{2}</b>",
"Text Size": 10,
"Font": "robotocondensed-regular.ttf",
"Text Outline Thickness": "0",
"Text Outline Color": "1 1 1 1"
}
}
]
}
CobaltAPI.png.bf275742809ea2136a139fb4dc4b1583.png

应用程序接口
public Dictionary<ulong, PlayerData> GetAllKDRData()
{
return _playerData;
}

public PlayerData? GetPlayerKDR(ulong playerID)
{
if (_playerData.TryGetValue(playerID, out PlayerData playerData))
return playerData;
return null;
}

public Dictionary<ulong, (double, double, double)> GetAllKDRStats()
{
Dictionary<ulong, (double, double, double)> kdrstats = new Dictionary<ulong, (double, double, double)>();
foreach (var entry in _playerData)
{
kdrstats.TryAdd(entry.Key, (entry.Value.kills, entry.Value.deaths, entry.Value.kills / (entry.Value.deaths == 0 ? 1 : entry.Value.deaths)));
}
return kdrstats;
}

public (double, double, double)? GetPlayerKDRStats(ulong playerID)
{
if (_playerData.TryGetValue(playerID, out PlayerData playerData))
return (playerData.kills, playerData.deaths, playerData.kills / (playerData.deaths == 0 ? 1 : playerData.deaths));
return null;
}
作者
FaGuan
下载
1
类型
数字产品
许可证期限
无限
价格
25.00 CNY
查看
49
首次发布
最后更新

评分

0.00 星 0 星

来自FaGuan的更多资源

最新更新

  1. 4.0.5

    4.0.5
后退
顶部