CHANGED: #1471 Some type changes for serializing.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
4e00abc283
commit
8748660358
2 changed files with 4 additions and 1 deletions
|
@ -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() );
|
||||
|
||||
|
|
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue