• 0

    posted a message on LuaTexts Official Thread
    It works, thanks again for the help.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Yes, and it appears to be working properly after I changed "VeryShort(power)" to "VeryShort(power,true)".

    The text is not fully aligning to the left after the power text is hidden (http://i.imgur.com/dmo3hEM.jpg), though. Is there any way to make the lua text adjust its alignment to the left, when temporarily hiding the power text?
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Power is displaying as "%.Of" with that Lua Text.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Thank you for the help. How do I combine these 2 Lua Texts, so that they are displayed at the same time?
    local power = Power(unit)
    if power > 0 then
      return VeryShort(Power(unit))
    end

    local dr,dg,db = DifficultyColor(unit)
    return "%s |cff%02x%02x%02x%s%s|r",Name(unit),dr,dg,db,Level(unit),Classification(unit) and '+' or ''

    I have my Unit Frame set to display: power, name, then level, on one line, while hiding the value for power if it's 0.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    I haven't been able to figure out how to convert the following DogTagTexts to Lua Text:
     [(if MP > 0 then
        MP:VeryShort
    end)] [Name] [Level:DifficultyColor]

    [(~IsMaxHP ? ~Dead ? Outline PercentHP:HPColor)]

    So far I've been using:
    Outline()
    local cur, max = HP(unit), MaxHP(unit)
    local r,g,b = HPColor(cur, max)
    if Percent(HP(unit),MaxHP(unit)) < 100 then
    return "|cff%02x%02x%02x%s%%|r",r,g,b,Percent(cur,max)
    end

    to replace the 2nd DogTag, but I'd like it to hide when the unit is dead and hide the "%" symbol at all times. Thank you in advance for any assistance.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.