View Full Version : How to make name over hp in ToT
Coldfury
10-28-2006, 10:21 PM
i tried a lot of things, changing the layer, adding FrameLevel code, etc.. nothing worked.
any1 got an idea?
I'm not sure how your ToT frame is defined. For myself I use Nurfed_unit_mini in which both the hp bar and name are defined.
Add FrameLevel = 2 to your hp bar difinition:
hp = {
type = "StatusBar",
size = { 89, 16 },
FrameStrata = "LOW",
FrameLevel = 2,
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar6",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 5, 5 },
},
and then add FrameLevel = 5 to your name definition:
name = {
type = "FontString",
size = { 62, 12 },
layer = "OVERLAY",
FrameLevel = 5,
Font = { NRF_FONT.."Charcoal.ttf", 12, "OUTLINE" },
JustifyH = "LEFT",
ShadowColor = { 0, 0, 0, 0.75 },
ShadowOffset = { -1, -1 },
Anchor = { "LEFT", "$parent", "LEFT", 5, 0 },
vars = { format = "$name" },
},
Coldfury
10-29-2006, 09:04 AM
I'm not sure how your ToT frame is defined. For myself I use Nurfed_unit_mini in which both the hp bar and name are defined.
Add FrameLevel = 2 to your hp bar difinition:
hp = {
type = "StatusBar",
size = { 89, 16 },
FrameStrata = "LOW",
FrameLevel = 2,
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar6",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 5, 5 },
},
and then add FrameLevel = 5 to your name definition:
name = {
type = "FontString",
size = { 62, 12 },
layer = "OVERLAY",
FrameLevel = 5,
Font = { NRF_FONT.."Charcoal.ttf", 12, "OUTLINE" },
JustifyH = "LEFT",
ShadowColor = { 0, 0, 0, 0.75 },
ShadowOffset = { -1, -1 },
Anchor = { "LEFT", "$parent", "LEFT", 5, 0 },
vars = { format = "$name" },
},
i already tried that, and its not working for me :(
well its not working only for the tottott, mini frame. because i did same thing for the player, target and party frame and its working...
Hmm.. I did alot of messing around before I got mine working. You can check the code here (http://forums.nurfed.com/attachment.php?attachmentid=540&d=1162123873), maybe you can see where the difference is.
Coldfury
10-29-2006, 09:49 AM
thanks :) ill look into this
Coldfury
10-29-2006, 10:07 AM
WOOT! thanks it worked :D
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.