all dialogs are warnings
This commit is contained in:
@@ -196,13 +196,13 @@ Actor* ActorUtil::LoadFromNode( const RString& sDir, const XNode* pNode, Actor *
|
|||||||
{
|
{
|
||||||
RString sName;
|
RString sName;
|
||||||
if( !pChild->GetAttrValue( "Name", sName ) )
|
if( !pChild->GetAttrValue( "Name", sName ) )
|
||||||
Dialog::OK( ssprintf("Param node in '%s' is missing the attribute \"Name\"", sDir.c_str()), "MISSING_ATTRIBUTE_WARNING" );
|
Dialog::OK( ssprintf("Param node in '%s' is missing the attribute \"Name\"", sDir.c_str()), "MISSING_ATTRIBUTE" );
|
||||||
|
|
||||||
LuaHelpers::RunAtExpressionS( sName );
|
LuaHelpers::RunAtExpressionS( sName );
|
||||||
|
|
||||||
RString s;
|
RString s;
|
||||||
if( !pChild->GetAttrValue( "Value", s ) )
|
if( !pChild->GetAttrValue( "Value", s ) )
|
||||||
Dialog::OK( ssprintf("Param node in '%s' is missing the attribute \"Value\"", sDir.c_str()), "MISSING_ATTRIBUTE_WARNING" );
|
Dialog::OK( ssprintf("Param node in '%s' is missing the attribute \"Value\"", sDir.c_str()), "MISSING_ATTRIBUTE" );
|
||||||
Lua *L = LUA->Get();
|
Lua *L = LUA->Get();
|
||||||
LuaHelpers::RunScript( L, "return " + s, "", 1 );
|
LuaHelpers::RunScript( L, "return " + s, "", 1 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user