Target's health percentage showing decimal #242


  • Fixed
  • Patch
Closed
  • dracuul78 created this issue Aug 21, 2009

    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)
    


  • dracuul78 added the tags New Patch Aug 21, 2009
  • Forge_User_26050436 posted a comment Aug 22, 2009

    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.

  • Forge_User_26050436 removed a tag New Aug 23, 2009
  • Forge_User_26050436 added a tag Started Aug 23, 2009
  • Forge_User_26050436 removed a tag Started Aug 29, 2009
  • Forge_User_26050436 added a tag Fixed Aug 29, 2009
  • Forge_User_26050436 closed issue Aug 29, 2009

To post a comment, please login or register a new account.