borako
10-24-2006, 01:29 PM
I've been using ag_unitframes but came to Nurfed for its 3D portrait feature. I've been make some layout modification to my liking, but one thing I haven't been able to figure out is how to add 3d portrait to the TOT frame.
Here's my code for tot unit:
Nurfed_Unit_tottott = {
type = "Button",
size = { 150, 70 },
FrameStrata = "LOW",
Backdrop = {
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 16,
edgeSize = 16,
insets = { left = 2, right = 2, top = 2, bottom = 2 }
},
BackdropColor = { .2, .2, .2, 0.85 },
BackdropBorderColor = { (70/255), (130/255), (180/255), 1 },
children = {
model_frame = {
template = "Nurfed_Model_frame",
size = { 50, 50 },
FrameLevel = 1,
Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", 0, 10 },
},
model = {
template = "Nurfed_Unit_model",
size = { 45, 45 },
Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 },
},
-------------
It looks like just adding model and modelframe to this structure does add the frame but just a blank square. I'm guessing that it requires some other coding that makes it happen, but even after few hours of experiments I couldn't figure it out. I know it's possible since ag_unitframe has the feature.
Can anyone help me?
Thanx.
Here's my code for tot unit:
Nurfed_Unit_tottott = {
type = "Button",
size = { 150, 70 },
FrameStrata = "LOW",
Backdrop = {
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 16,
edgeSize = 16,
insets = { left = 2, right = 2, top = 2, bottom = 2 }
},
BackdropColor = { .2, .2, .2, 0.85 },
BackdropBorderColor = { (70/255), (130/255), (180/255), 1 },
children = {
model_frame = {
template = "Nurfed_Model_frame",
size = { 50, 50 },
FrameLevel = 1,
Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", 0, 10 },
},
model = {
template = "Nurfed_Unit_model",
size = { 45, 45 },
Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 },
},
-------------
It looks like just adding model and modelframe to this structure does add the frame but just a blank square. I'm guessing that it requires some other coding that makes it happen, but even after few hours of experiments I couldn't figure it out. I know it's possible since ag_unitframe has the feature.
Can anyone help me?
Thanx.