[问题] WeakAuras 监视法力百分比

楼主: zorro0555 (睡宝)   2014-12-10 03:59:12
想问一下 要怎么用 WeakAuras 的文字类行模组
用 %c 输出 %p/%t*100 + '%' 的法力百分比
简单来说就是一个文字会跟着我法力百分比跳要怎么写?
感谢大家了
自问自答
function()
local p = math.max(0, UnitMana("player")) /
math.max(1, UnitManaMax("player")) * 100;
return string.format("%.f", p) .. "%%";
end

Links booklink

Contact Us: admin [ a t ] ucptt.com