1. #1

    Shadowed Unit Frames (Need help with text positioning)

    I need some help with Shadowed Unit Frames.

    I'm trying to figure out how to put the right text of the target on multiple rows.

    This is how it is RIGHT NOW:
    http://i.imgur.com/KihO1mY.png

    This is how I WANT IT:
    http://i.imgur.com/KSwUihl.png

    Been messing around with adding custom tags and stuff but I only seem to mess things up completely, lol.

    I wouldn't mind getting a decimal on the percentage number as well.

  2. #2
    I think you want to use some flavor of the tag "nl". I'm not familiar with the addon, but I use one that works with [nl] I believe.

    Hopefully this works for your addon.

  3. #3
    EU down for maintenance atm so cannot check, but try /n as a newline character.

  4. #4
    I looked for tags like that but I couldn't seem to find one. Tried those two but they didn't work, thanks anyway!

    I guess it's possible to make your own tags but I don't know how.

  5. #5
    You have to add a new text, so, in General >> Text Management, add a new one and choose the parent bar to which you want it linked. ex "Right Text 2", parent healthbar
    Now you can use it in that bar with any tags and position.

    As far as I know tags are decoded to strings before 'being placed' into their texts, so there is no way to parse a carriage return, and escaping characters will not work there.

  6. #6
    Quote Originally Posted by henrytxin View Post
    You have to add a new text, so, in General >> Text Management, add a new one and choose the parent bar to which you want it linked. ex "Right Text 2", parent healthbar
    Now you can use it in that bar with any tags and position.

    As far as I know tags are decoded to strings before 'being placed' into their texts, so there is no way to parse a carriage return, and escaping characters will not work there.
    I found that same approach, but given the lack of full alignment options I was not able to replicate the positioning the OP requires.
    There are some necessary options missing, which seem strange when you look at what is offered.
    I don't think that Shadowed Unit Frames is capable of giving you what you want there.

  7. #7
    done without problems, add a text to the bar and align it wherever you want
    Here, I added an extra text (healthbar2), parented to health bar and positioned it just underneath the default 'right text' and used the current/max hp tag in it:
    http://imgur.com/wfbLuLl

    the result
    http://imgur.com/5neAPZF
    Last edited by henrytxin; 2013-09-09 at 01:02 AM.

  8. #8
    Quote Originally Posted by henrytxin View Post
    done without problems, add a text to the bar and align it wherever you want
    Here, I added an extra text (healthbar2), parented to health bar and positioned it just underneath the default 'right text' and used the current/max hp tag in it:
    http://imgur.com/wfbLuLl

    the result
    http://imgur.com/5neAPZF
    Works great, thanks!

    Although there is one small issue - the left text now doesn't get cut off (used to end with ...) if it's not on the same vertical position as the right text. It shows whole name now, despite now long it is.

    Is there any tag to fix this? I don't wanna use "Abbreviated Name" cause it shows initials rather than cutting of the name at the end.

  9. #9
    Quote Originally Posted by Haxlax View Post
    Although there is one small issue - the left text now doesn't get cut off (used to end with ...) if it's not on the same vertical position as the right text. It shows whole name now, despite now long it is.

    Is there any tag to fix this? I don't wanna use "Abbreviated Name" cause it shows initials rather than cutting of the name at the end.

    I believe you want to adjust the "Width Weight" option. It's under the "Text" tab for the unit that you want to adjust.
    Virtualize <Solution> @ Greymane | virtual#1157 | Web | YouTube | Twitter | Facebook
    Hermes - Share cooldown status with raid/party.
    Skada: Survivability - Show when a character died during a specific attempt.
    AffDots - Track the potency of your DoTs on a target.

Posting Permissions

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