PDA

View Full Version : 2d portraits?



sze
12-11-2006, 10:00 AM
The good ol' 2d portraits aren't working for me with the new nurfed. Help appreciated.

sze
12-17-2006, 04:50 AM
/bump

Tivoli
12-17-2006, 04:10 PM
Fixed in latest version.

sze
12-19-2006, 05:22 AM
Thanks Tiv. :)

Ceraph
12-29-2006, 07:16 AM
How do we take advantage of using 2d portraits?

sze
12-29-2006, 02:20 PM
Use something like this in your layout.lua:


portrait = {
type = "Texture",
size = { 60, 60 },
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", -30, 0 },
},

Shaw
01-24-2007, 04:08 PM
Use something like this in your layout.lua:


portrait = {
type = "Texture",
size = { 60, 60 },
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", -30, 0 },
},



Where to paste it? =)

Shaw
01-26-2007, 03:51 PM
Bump

Shaw
02-09-2007, 10:24 AM
Where to paste it? =)


still noone can help me?? can i past it anywhere??

Stickx
02-12-2007, 12:21 PM
You put that in your layout.lua in place of model = { under the player, target, focus, or whatever frame you want 2d portraits in.

Broghard
06-16-2007, 10:00 AM
Alright i managed to get the 2d image..
it whas pretty easy

i changed
model = {
template = "Nurfed_Unit_model"

to

portrait = {
type = "Texture",
size = { 75, 75 },


but it whas placed wrong in the levels
so then i changed the level
so it look like this
Nurfed_Model_frame = {
type = "Frame",
FrameStrata = "LOW",
FrameLevel = 1,
now image is shown right but
look at pick and ul se what happend

http://img505.imageshack.us/img505/4817/2dxx8.jpg
how do i set a value so i fill empty area with black so it doesent show the frames behind?

Broghard
06-16-2007, 04:47 PM
been trying half day and still cant find the reason for the background to chine through =(

Tenten
06-16-2007, 05:38 PM
you have change the size of the portrait from 75x75 to 70x70 :) should do the trick xD

Broghard
06-16-2007, 09:20 PM
well thats not the problem look into the photo u se the frames behind em!

Tenten
06-17-2007, 01:40 AM
well thats not the problem look into the photo u se the frames behind em!

still, you can change the portrait size, as in the whole frame with border and all :p or change the width on the player frame border. looks like you have in the portrait frame about 5px to high but with the right width. or you subtract 75 width from the border frame of the player frame border.

a67rhf7823jn8747==