Originally Posted by
Daffan
Can u set hp style?
like in wow pitbull you can set unit frame to show only
%
(currrent hp / max hp)
deficit (hp lost)
etc etc
yes that is planned, template syntax will be as follows (examples)
Code:
${hp} / ${hpMax} (${hpPct}%) - ${def}
->
"9000 / 10000 (90%) - 1000"
You will be able to also perform arithmetic operations within it, even the entire formulas
Code:
${hp/2} / ${hpMax/2} (${hpPct}%) - ${def}
->
"4500 / 5000 (90%) - 1000"
as well as wide array of math function such as rounding or ceiling random (well technically to all javascript global functions)
Code:
${hp} / ${hpMax} (${hpPct}%) ${Math.random()} - ${def}
->
"9000 / 10000 (90%) 0.5915628966115005 - 1000"
obviously you don't need to use all the variables, for just percent it will be