找回密码
 立即注册

手机短信,快捷登录

搜索

Unit health on default unit frame

[复制链接]
 楼主| 发表于 2023-6-12 09:53:19 | 显示全部楼层 |阅读模式
Adds health text to the default target unit frame.

Recently, Blizzard made a change to the UnitHealth and UnitHealthMax APIs such that they return an NPC's actual health instead of a percentage. Most custom unit frames support this change automatically, however the default target frame does not. This aura adds a simple text aura on top of the default target frame health bar that shows actual NPC health.

This does not work for players. For players, UnitHealth and UnitHealthMax only return a number between 0 and 100 indicating health percentage.

See also:

Target status text
https://wago.io/target-status-text
Shows both health and power (mana, energy, rage) on the default target frame
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|魔兽世界玩家社区APP官网 ( 鄂ICP备20007009号-6 )

GMT+8, 2025-7-8 19:56 , Processed in 0.281399 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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