Quantcast WoWInterface - View Single Post - Stuf LUA help
Thread: Stuf LUA help
View Single Post
10-03-15, 08:34 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The simplest way would be to just call the Blizzard function for short number display:
Code:
        -- After this line:
        local perchp = 100 * curhp/maxhp
        -- add these two lines:
        curhp = AbbreviateLargeNumbers(curhp)
        maxhp = AbbreviateLargeNumbers(maxhp)
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote