CHANGED: #1471 Some type changes for serializing.

This commit is contained in:
dfighter1985 2012-08-11 19:39:48 +02:00
parent 01957ebf8d
commit 08b3c5f6e2
2 changed files with 4 additions and 1 deletions

View file

@ -153,6 +153,9 @@ namespace NLGUI
if( node == NULL )
return NULL;
if( xmlGetProp( node, BAD_CAST "type" ) == NULL )
xmlSetProp( node, BAD_CAST "type", BAD_CAST "button" );
xmlNewProp( node, BAD_CAST "tx_normal",
BAD_CAST CViewRenderer::getInstance()->getTextureNameFromId( _TextureIdNormal ).c_str() );

View file

@ -799,7 +799,7 @@ namespace NLGUI
return NULL;
if( xmlGetProp( node, BAD_CAST "type" ) == NULL )
xmlSetProp( node, BAD_CAST "type", BAD_CAST "tab_button" );
xmlSetProp( node, BAD_CAST "type", BAD_CAST "tab" );
xmlNewProp( node, BAD_CAST "group", BAD_CAST _AssociatedGroup.c_str() );