STUF, vertical text.
Evening, i wonder if there is anyone here that knows how to get a unitframes playername to become vertical in stuf?
What i want is for my pet and focus to look like this -> N a m e B e a s t There is an option in the stuf texts to add a custom lua but i dont know a thing about lua, so is there any kind soul with them awesome lua skills that could help me with this (if its possible)?<3 Thanks! |
As far as I know this still works, to a certain extent.
Code:
function(unit, cache, textframe) |
Quote:
|
text = string.gsub(text, "(.)", function(x) return x.."\n" end)
where text is the string you want to display vertically. You also have to set the height of your fontstring tall enough to hold the text. |
1 Attachment(s)
Quote:
|
Quote:
Code:
function(unit, cache, textframe) What am i doing wrong? |
Make sure your disable text is not checked, then make sure a font/size/tag is selected. Easy way to see where its supposed to be, is check the box (top right of GUI) highlight target.
|
Ah i found the problem, thanks for the help.
I might ask another question while im at it:p This one is regarding weakauras and kgpanels. I've made a progressbar in weakauras that tracks demo locks demonic fury, i do however want 2 x kgpanels to be parented to it but since weakauras dont get an unique name for anchoring/parenting i wonder if there's another way to do this? Like using some script or something? |
All times are GMT -6. The time now is 03:30 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI