Changed GetAttrPath to not warn on optional paths.
This commit is contained in:
@@ -36,7 +36,7 @@ Def.ActorScroller{
|
|||||||
Def.ActorFrame{
|
Def.ActorFrame{
|
||||||
Def.BitmapText{
|
Def.BitmapText{
|
||||||
Name="ScrollItem1",
|
Name="ScrollItem1",
|
||||||
Font="Common normal",
|
Font="Common Normal",
|
||||||
Text="Scroll Item 1",
|
Text="Scroll Item 1",
|
||||||
InitCommand=cmd(diffuse,color("#FF0000")),
|
InitCommand=cmd(diffuse,color("#FF0000")),
|
||||||
},
|
},
|
||||||
@@ -44,14 +44,14 @@ Def.ActorScroller{
|
|||||||
Def.ActorFrame{
|
Def.ActorFrame{
|
||||||
Def.BitmapText{
|
Def.BitmapText{
|
||||||
Name="ScrollItem2",
|
Name="ScrollItem2",
|
||||||
Font="Common normal",
|
Font="Common Normal",
|
||||||
Text="Scroll Item 2",
|
Text="Scroll Item 2",
|
||||||
InitCommand=cmd(glow,color("#00FF0088")),
|
InitCommand=cmd(glow,color("#00FF0088")),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Def.BitmapText{
|
Def.BitmapText{
|
||||||
Name="ScrollItem3",
|
Name="ScrollItem3",
|
||||||
Font="Common normal",
|
Font="Common Normal",
|
||||||
Text="Scroll Item 3",
|
Text="Scroll Item 3",
|
||||||
InitCommand=cmd(bob;effectmagnitude,8,0,4),
|
InitCommand=cmd(bob;effectmagnitude,8,0,4),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ function BGFitChoiceExample(params)
|
|||||||
{{-hw, -hh, 0}, params.soutline_color},
|
{{-hw, -hh, 0}, params.soutline_color},
|
||||||
}
|
}
|
||||||
self:SetVertices(verts)
|
self:SetVertices(verts)
|
||||||
self:SetLineWidth(1)
|
self:SetLineWidth(2)
|
||||||
self:SetDrawState{Mode= "DrawMode_LineStrip"}
|
self:SetDrawState{Mode= "DrawMode_LineStrip"}
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -416,8 +416,11 @@ bool ActorUtil::GetAttrPath( const XNode *pNode, const RString &sName, RString &
|
|||||||
{
|
{
|
||||||
RString sDir;
|
RString sDir;
|
||||||
if( !pNode->GetAttrValue("_Dir", sDir) )
|
if( !pNode->GetAttrValue("_Dir", sDir) )
|
||||||
|
{
|
||||||
|
if(!optional)
|
||||||
{
|
{
|
||||||
LOG->Warn( "Relative path \"%s\", but path is unknown", sOut.c_str() );
|
LOG->Warn( "Relative path \"%s\", but path is unknown", sOut.c_str() );
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sOut = sDir+sOut;
|
sOut = sDir+sOut;
|
||||||
|
|||||||
Reference in New Issue
Block a user