X-Perl UnitFrames

242 - Target's health percentage showing decimal

With this patch, the target's health percentage shows one decimal. So you'll finally know how much that 1% wipe *really* was.

XPerl\XPerl.lua
Line 8, ADD:

local percF	= "%.1f"..PERCENT_SYMBOL

Line 708, REPLACE

			bar.percent:SetFormattedText(percD or "%d%%", (percent + 0.005) * 100)


WITH

			local fmt = percD
			if percent < 1 then
				fmt = percF
			end
			bar.percent:SetFormattedText(fmt or "%d%%", percent * 100)


User When Change
Zeksie Sat, 29 Aug 2009 19:39:08 Changed status from Started to Fixed
Zeksie Sun, 23 Aug 2009 23:57:06 Changed status from New to Started
Dracula Fri, 21 Aug 2009 18:26:08 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Zeksie Zeksie Sun, 23 Aug 2009 02:11:03

    Thought about this a couple of times. The 1% mystery is not so bad now that the real health values of things were exposed in the API some time ago. Will see how it comes out on screen later.

  • 1 comment

Facts

Last updated on
29 Aug 2009
Reported on
21 Aug 2009
Status
Fixed - Developer made requested changes. QA should verify.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.

Reported by

Possible assignees