 
CMI Rank这个进度条变量怎么弄我用%cmi_user_nextrankpercent%这个变量只显示进度数字
 本帖最后由 一颗丁子 于 2021-10-13 22:43 编辑 
这是CMI自带的查看器才有的指示条 外部使用的话CMI只提供了数值变量 分别是
%cmi_user_rank_percent_[rankName]%
和你用的%cmi_user_nextrankpercent%
不过 你或许可以通过PlaceholderAPI的javascript变量来实现指示条 大概像这样
var rank = "%cmi_user_nextrankpercent%"
function checkPercent(){
switch(rank){
case "0":
return "&a|&7||||";
case "20":
return "&7|&a|&7|||"
// 下面懒得改颜色了)
case "40":
return "&7|||||";
case "60":
return "&7|||||";
case "80":
return "&7|||||";
case "100":
return "&7|||||";
default:
return "&7|||||||";
}
}
checkPercent();
(估计上面这么写不行)瞎写的)
或者直接判断大小 随便你)
这是CMI自带的查看器才有的指示条 外部使用的话CMI只提供了数值变量 分别是
%cmi_user_rank_percent_[rankName]%
和你用的%cmi_user_nextrankpercent%
不过 你或许可以通过PlaceholderAPI的javascript变量来实现指示条 大概像这样
var rank = "%cmi_user_nextrankpercent%"
function checkPercent(){
switch(rank){
case "0":
return "&a|&7||||";
case "20":
return "&7|&a|&7|||"
// 下面懒得改颜色了)
case "40":
return "&7|||||";
case "60":
return "&7|||||";
case "80":
return "&7|||||";
case "100":
return "&7|||||";
default:
return "&7|||||||";
}
}
checkPercent();
(估计上面这么写不行)瞎写的)
或者直接判断大小 随便你)
并不用楼上的javascript办法,你直接用progress变量即可