1. #1

    Lua Text Help Please

    I'm looking to improve the built in Heath and power text. I would like them to:

    • Be colored, light red for HP, and Light Blue for Power
    • Display remaining HP or power only. IE you have 100k HP, you take a 10k hit, so 90K is displayed.
    • Hiddden when your @ 100%
    • Abbreviated so instead of 100,000 is reads as 100k

    Heres sorta a visual of what im working with.

    Last edited by dankz; 2011-03-29 at 06:49 AM.

  2. #2
    Deleted
    Are we talking PitBull4 here?

  3. #3
    yes, PB4. I can post what im using, but they are just the built in text.

  4. #4
    Deleted
    Code:
    local h=HP(unit)
    if h<MaxHP(unit) then return "|cffff88ee%s|r",Short(h,true) end
    Code:
    local p=Power(unit)
    if p<MaxPower(unit) then return "|cff99eeff%s|r",Short(p,true) end

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •