From d42171a21665ac861d76a659933a1fd43adf0c64 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Tue, 14 Aug 2012 01:10:14 +0200 Subject: [PATCH] CHANGED: #1471 CGroupHTMLInputOffset fields can now we serialized. --- code/nel/include/nel/gui/group_html.h | 1 + code/nel/src/gui/group_html.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/code/nel/include/nel/gui/group_html.h b/code/nel/include/nel/gui/group_html.h index 9547c23f4..5f4f62115 100644 --- a/code/nel/include/nel/gui/group_html.h +++ b/code/nel/include/nel/gui/group_html.h @@ -659,6 +659,7 @@ namespace NLGUI public: sint32 Offset; CGroupHTMLInputOffset(const TCtorParam ¶m); + xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const; virtual bool parse (xmlNodePtr cur, CInterfaceGroup *parentGroup); }; diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 4ce86b7d4..e0046b203 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -4222,6 +4222,18 @@ namespace NLGUI { } + xmlNodePtr CGroupHTMLInputOffset::serialize( xmlNodePtr parentNode, const char *type ) const + { + xmlNodePtr node = CInterfaceGroup::serialize( parentNode, type ); + if( node == NULL ) + return NULL; + + xmlSetProp( node, BAD_CAST "type", BAD_CAST "html_input_offset" ); + xmlSetProp( node, BAD_CAST "y_offset", BAD_CAST toString( Offset ).c_str() ); + + return node; + } + // *************************************************************************** bool CGroupHTMLInputOffset::parse(xmlNodePtr cur, CInterfaceGroup *parentGroup) {