View Full Version : Another Problem w/ 2d-portraits, need help
Hello,
I can't place the 2d-portrait above of my hp and mana bars.
When I use Frame Level 1 on my bars it works, but then it is a 50/50 chance that after an UI reload the background of the bars hide behind the background of my player frame. Maybe because the background is Frame Level 1 by default.
I really need help!
Additional info: it seems that Frame Level has no effect on the portrait, otherwise I'd set that to 3 to be in front of my bars, but it doesn't work. :( I really want to place my portrait above my bars.
Hannes
10-09-2006, 08:35 AM
Mh I had some problems with that as well, but when I set the background's FrameLevel to 1, and the portrait's to 3, it worked. Maybe set it even higher.. not really pro with that FrameLevel stuff ;P
No, it doesn't work for me. :(
It seems as if FrameLevel has absolutely no effect on 2d-portraits. The only possibility to get the portrait on top of the bars is to set the FrameLevel of the bars to 1, but then the background of the unit frame is sometimes on top of the background of the bars. It's very difficult to describe my problem. ;)
fridgid
10-10-2006, 10:46 AM
Screenshots?
Ok, here we go...
when I use no Frame Level anywhere it looks like this:
http://img80.imageshack.us/img80/4998/1wr8.jpg
Bad, because the bars are on top of the portrait.
When I use "Frame Level = 1," on hp and mana it looks like this:
http://img80.imageshack.us/img80/2986/2og6.jpg
Looks good, BUT:
Now the hp and mana bars' backgrounds seem to have a conflict with the background of the unit frame (Because the background is Frame Level 1 by default or so). Sometimes after loading WoW or reloading the ui it switches between
http://img80.imageshack.us/img80/8303/4mc1.jpg <- good
and
http://img80.imageshack.us/img80/9637/3pc6.jpg <- bad
it might be okay in Durotar, but in darker areas it seems as if the bars have no background.
Like I already said it changes nothing if I use Frame Level 2, 3 or anything on the portrait, like it's immune ;) . And that's the point, I don't want to reduce the Frame Level on the bars because it produces the error above, I merely want to set the portrait above all other unit frame stuff.
Help appreciated :)
Broghard
10-11-2006, 12:00 PM
Ok, here we go...
when I use no Frame Level anywhere it looks like this:
http://img80.imageshack.us/img80/4998/1wr8.jpg
Bad, because the bars are on top of the portrait.
When I use "Frame Level = 1," on hp and mana it looks like this:
http://img80.imageshack.us/img80/2986/2og6.jpg
Looks good, BUT:
Now the hp and mana bars' backgrounds seem to have a conflict with the background of the unit frame (Because the background is Frame Level 1 by default or so). Sometimes after loading WoW or reloading the ui it switches between
http://img80.imageshack.us/img80/8303/4mc1.jpg <- good
and
http://img80.imageshack.us/img80/9637/3pc6.jpg <- bad
it might be okay in Durotar, but in darker areas it seems as if the bars have no background.
Like I already said it changes nothing if I use Frame Level 2, 3 or anything on the portrait, like it's immune ;) . And that's the point, I don't want to reduce the Frame Level on the bars because it produces the error above, I merely want to set the portrait above all other unit frame stuff.
Help appreciated :)
sze
could u post the code u did to add the 2d photo instead of the 3d photo...
or post ur layout so i can look into it!
all the code u added.. and il se what happens here!
portrait = {
type = "Texture",
size = { 60, 60 },
layer = "OVERLAY",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", -30, 0 },
},
But you also need to add following to the NurfedUnits.lua located in Nurfed_Utility (thx to Hannes at this point)
function Nurfed_Units:UpdatePortrait()
local port = getglobal(this:GetName().."portrait");
if (port) then
SetPortraitTexture(this.portrait, this.unit);
end
end
Broghard
10-11-2006, 12:12 PM
sze ..
ahh..
could u please post ur layout and .. ur NurfedUnits.lua file for me..
i wana check it out and se what i can do..
Broghard
10-11-2006, 01:19 PM
im using the TKNP layout
I am trying to change the 3d image to 2d image!!
I can se the 2d Image if i move its anchor..
but when i move it into the modelframe its hidden behind everything..
this is what i have done
-- },
-- model = {
-- template = "Nurfed_Unit_model",
-- size = { 70, 70 },
-- Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 },
},
portrait = {
type = "Texture",
size = { 60, 60 },
layer = "OVERLAY",
Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 },
what am i doing wrong??
You have to set the Frame Level of the Model Frame to 1 ;)
model_frame = {
template = "Nurfed_Model_frame",
size = { 50, 50 },
FrameLevel = 1,
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 4 },
},
If you know another way, maybe add something so that Frame Level works for the portrait, let me know. :)
Broghard
10-11-2006, 02:06 PM
nope..
still doesent work..
damn...
this one is messy =(
Coldfury
10-11-2006, 02:50 PM
@Broghard
Im pretty sure you made something wrong in ur Nurfed_Units.lua because, im my layout.lua
just adding
portrait = {
type = "Texture",
size = { 60, 60 },
Anchor = { "TOPLEFT", "$parentmodel_frame", "TOPLEFT", 6, -6 },
},
and commenting out the model section worked fine for me. Without even editing Nurfed_Units.lua.
So try using default Nurfed_Units.lua.
and btw, i think you commented out a wrong line on the model section. but this isnt fixing the problem. im still pretty sure its in ur Nurfed_Units.lua
-- },
-- model = {
-- template = "Nurfed_Unit_model",
-- size = { 70, 70 },
-- Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 },
},
pxcasey
10-12-2006, 10:48 AM
meh, it doesn't really matter which close bracket he commented out, there's still a close bracket for the previous block.
Broghard
10-12-2006, 11:11 AM
meh, it doesn't really matter which close bracket he commented out, there's still a close bracket for the previous block.
I have tryed all.. and doesent work =(
Coldfury
10-12-2006, 01:22 PM
I have tryed all.. and doesent work =(
did you try using the default Nurfed_Units.lua?
if yes, then i guess the only thing left to do is to start all back from default one lol
Broghard
10-12-2006, 01:26 PM
did that aswell.. and still no luck.. oh man =0(
hope someone cracks this one.. that would be great.. i have given up.
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.