Thread Tools Display Modes
11-04-15, 01:19 PM   #1
Aur0r4
A Deviate Faerie Dragon
 
Aur0r4's Avatar
AddOn Compiler - Click to view compilations
Join Date: Feb 2010
Posts: 16
DogTags: New Line

Hi there,

I have a short question about DogTags in PitBull4:

How can I add an empty line e.g. for targets health-text? I looked into lua-files of outdated UIs (Caith UI), mostly they were using "\n" in the DogTag code, but it doesn't work for me, it's alwasy "Syntax Error" :-( ....

Any ideas?
The code is very simple this one here:

Code:
[(~Dead ? Outline HP:Short:HPColor)]
I just need to move the health text a little bit lower.
  Reply With Quote
11-05-15, 02:04 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You can try these:
  • \\n
  • \124n
  • |n
  • ||n
...but if none of those work, then you're probably out of luck with an inline linebreak. Doesn't PitBull have controls for micromanaging the position of everything anyway?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-07-15, 09:23 AM   #3
Aur0r4
A Deviate Faerie Dragon
 
Aur0r4's Avatar
AddOn Compiler - Click to view compilations
Join Date: Feb 2010
Posts: 16
Thanks for your answer! Sadly all these tipps didn't work for me ..
Thats so weird...why did this work in previous versions?
Pitbull has options to move the text but you can only choose e.g. "attach to Healthbar" at "bottom right" or something else but you cannot move the text where you want ...

I want the Mana and Health Texts look like the second picture, it needs to be more to the center..:





edit: I know that a linebreak do not move the text more into the center^^ but I can attach the text to the bottom right of mana bar, then the x axis is at the correct place, but y isnt
___
Yulu

Last edited by Aur0r4 : 11-07-15 at 09:47 AM.
  Reply With Quote
11-07-15, 07:51 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Aur0r4 View Post
why did this work in previous versions?
Well, I haven't used DogTag/PitBull since TBC/early WotLK, so I can't even begin to guess... you might try switching to LuaTexts and see if that supports line breaks (in any form).
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-23-21, 06:57 PM   #5
Aur0r4
A Deviate Faerie Dragon
 
Aur0r4's Avatar
AddOn Compiler - Click to view compilations
Join Date: Feb 2010
Posts: 16
6 years later I know what to do ...


Code:
" "


But to get the same position for the HP/MP text as you can see on Caiths Unitframe, just anchor the text to an "empty space bar" and choose "left" or "right" as position.
__________________
Aur0r4
Yuluria


See Yulu UI in action: here

F.A.Q.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » DogTags: New Line

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off