Page 1 of 1

[v1.3.0+] Displacement Tracking

Posted: Tue Apr 19, 2016 3:34 am
by Zizzo
Displacement Shield is AFAICT the only shield that doesn't indicate in its buffs area display how much of the shield is left. Which is inconvenient, because it's also just about the only shield I consider worth using Aegis to juice back up, so I have to keep checking its tooltip to see how much of the shield has been depleted to know when to replenish it. [The shield overlay on the life meter doesn't help for this if you've got other shields active in addition to Displacement Shield.]

The trick, of course, is how to get all the information we need onto the effect icon. Ideally we'd need the duration, the current power and the maximum power, or at least the ratio of the latter two, and getting it there would mean heavy rewriting of bits of the UI. Fortunately, there's already infrastructure in place for displaying a fractional percentage in the effect icon (it's used by the Wild Speed effect from movement infusions, to show how long you've got left on your speed boost). A little borrowing later, we have my new Displacement Tracking addon.

[Technical info:]

Code: Select all

Hooks:
  ToME:load [to add a get_fractional_percent() method to the Displacement Shield effect]

Re: [v1.3.0+] Displacement Tracking

Posted: Wed Apr 20, 2016 11:30 am
by jenx
All hail the add on maestro! Another great improvement zizzo, hope it makes the core.