|
|
发表于 2026-6-8 18:24:32
|
显示全部楼层
登陆器config.lua增加如下代码块
-- 当数值达到对应阈值时,使用该单位进行格式化显示
-- threshold:数值达到该阈值才使用对应单位
-- scale:格式化时用数值除以该缩放比例,得到单位数值
-- decimal:显示时保留的小数位数
-- imageIndexOffset:战斗飘血等美术字中,单位图片的索引偏移(从数字'0'起算)
g_var["game.ValueUnits"] = {
{ threshold = 10000000000000000, name = "京", scale = 10000000000000000, decimal = 2, imageIndexOffset = 16},
{ threshold = 1000000000000, name = "兆", scale = 1000000000000, decimal = 2, imageIndexOffset = 15},
{ threshold = 100000000, name = "亿", scale = 100000000, decimal = 2, imageIndexOffset = 14},
{ threshold = 10000, name = "万", scale = 10000, decimal = 2, imageIndexOffset = 13}
} |
|