Thread Tools Display Modes
12-03-12, 09:11 AM   #1
Virroo
A Murloc Raider
Join Date: Dec 2012
Posts: 9
Question Need LUAtexts/Dogtag help!

Hey guys!
So recently I had to delete WoW due to an addon messing up my reigion file. There was no way back and after numerous of phonecalls to Blizz, I gave up and made a clean install!
Now, I had a pretty neat UI that took me quite a while to setup and while I feel like I have a pretty decent understanding of how addons work, I am lost when it comes to LUAtext and Dogtags.
Am I right to assume that Dogtags is a little outdated and that I should focus on Luatext?
Anyway, I used this text for Pitbull and I would love it if you guys could help me out so that I may recreate it
This is what i need:

Player Frame:

Player HP: (i.e."250k")
I need this text to be hidden when I cast a spell using; Quartz
Player HP percentage inside the unitframe. Changing color to match the appropriate HP


Target Frame:

Player HP: (i.e."250k")
Player HP percentage inside the unitframe. Changing color to match the appropriate HP


I really hope this is not too much to ask for and i would really appreciate it if you could help me out

Thanks in advance!

PS: Here are a few screenshots. They give a good idea of what I am looking for

http://i.imgur.com/mHoVY.jpg

http://i.imgur.com/n8KVu.png

Last edited by Virroo : 12-03-12 at 09:17 AM.
  Reply With Quote
12-03-12, 10:40 AM   #2
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
Glancing over the luatexts section for Pitbull 4...


Casting stuff...
Code:
local castInfo = CastData('player')
if castInfo then
   return
else
   return HP('player', false)
end
Health coloring...
Code:
local cur, max = HP(unit), MaxHP(unit)
local r, g, b = HPColor(cur, max)
return "|cff%02x%02x%02x%s|r", r, g, b, cur
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote
12-03-12, 11:01 AM   #3
Virroo
A Murloc Raider
Join Date: Dec 2012
Posts: 9
Originally Posted by Cirax View Post
Glancing over the luatexts section for Pitbull 4...


Casting stuff...
Code:
local castInfo = CastData('player')
if castInfo then
   return
else
   return HP('player', false)
end
Health coloring...
Code:
local cur, max = HP(unit), MaxHP(unit)
local r, g, b = HPColor(cur, max)
return "|cff%02x%02x%02x%s|r", r, g, b, cur
Awesome!
Oh now that Im at it, you know any 1pixel borders I can use?
I had such a hard time with Kgpanels last time and it took forever :/
  Reply With Quote
12-03-12, 11:03 AM   #4
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
I'm sure if you search for media packs on here you'll find some.
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote
12-03-12, 11:37 AM   #5
Virroo
A Murloc Raider
Join Date: Dec 2012
Posts: 9
I will give that a try!
So i got the LUA text working, but is there no way to kinda nudge the text pixel by pixel so that it fits? right now its still hovering a little outside my unitframe :/
  Reply With Quote
12-03-12, 12:02 PM   #6
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
There's no way to do it using dogtags or luatext. There would have to be some option in the config area for the frames to adjust it. I've never used Pitbull4 so I can't really help you much there.
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote
12-03-12, 12:21 PM   #7
Virroo
A Murloc Raider
Join Date: Dec 2012
Posts: 9
Yea okay thats fair enough.
About the whole media pack with 1pix borders, I cant find any. Whenever I scale them down they get filled with gaps and it takes forever to put together a border out of 100 small pieces. I will do it, but I would prefer not to xD
  Reply With Quote
12-03-12, 03:33 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
In order to have a sharp 1px border you need to disable UI scaling under the game's video options. This will cause each UI pixel to match up with a physical pixel on your monitor.

Either that or you need to use a bunch of convoluted function calls and math to set your frame's scale to some ridiculous 10000-point decimal value that achieves the same result, but I have no idea why anyone favors this over just disabling global UI scaling.
__________________
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

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Need LUAtexts/Dogtag help!


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