找回密码
 立即注册
搜索
查看: 106|回复: 3

[求助] 血量显示

[复制链接]
发表于 2026-3-10 19:09:53 | 显示全部楼层 |阅读模式
为什么血量显示是万不是W。怎么修改??
回复

使用道具 举报

发表于 2026-3-10 20:19:55 | 显示全部楼层
引擎260203_1

客户端lua文件夹 config.lua

-- 当数值达到对应阈值时,使用该单位进行格式化显示  
-- threshold:数值达到该阈值才使用对应单位
-- scale:格式化时用数值除以该缩放比例,得到单位数值  
-- decimal:显示时保留的小数位数  
-- imageIndexOffset:战斗飘血等美术字中,单位图片的索引偏移(从数字'0'起算)
g_var["game.ValueUnits"] = {
    { threshold = 10000000000000000, name = "G", scale = 10000000000000000, decimal = 2, imageIndexOffset = 16},
    { threshold = 1000000000000,     name = "Z", scale = 1000000000000,     decimal = 2, imageIndexOffset = 15},
    { threshold = 100000000,         name = "E", scale = 100000000,         decimal = 2, imageIndexOffset = 14},
    { threshold = 10000,             name = "W", scale = 10000,             decimal = 2, imageIndexOffset = 13}

点评

感谢你的指点。。  发表于 2026-3-11 17:27
厉害了,学习了。  发表于 2026-3-10 21:03
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|HGEM2论坛

GMT+8, 2026-4-4 02:43 , Processed in 0.270554 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表