From 4ce9b58aa4b05b14733b442c262fff6c60c5114b Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sat, 4 Aug 2012 20:16:08 +0200 Subject: [PATCH] CHANGED: #1471 Implemented property setting for CViewBitmapCombo. --- code/nel/include/nel/gui/view_bitmap_combo.h | 1 + code/nel/src/gui/view_bitmap_combo.cpp | 41 ++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/code/nel/include/nel/gui/view_bitmap_combo.h b/code/nel/include/nel/gui/view_bitmap_combo.h index 2548a143f..4adbd53b7 100644 --- a/code/nel/include/nel/gui/view_bitmap_combo.h +++ b/code/nel/include/nel/gui/view_bitmap_combo.h @@ -108,6 +108,7 @@ namespace NLGUI std::string getProperty( const std::string &name ) const; + void setProperty( const std::string &name, const std::string &value ); /** diff --git a/code/nel/src/gui/view_bitmap_combo.cpp b/code/nel/src/gui/view_bitmap_combo.cpp index b7aa6f034..4e9fa8b19 100644 --- a/code/nel/src/gui/view_bitmap_combo.cpp +++ b/code/nel/src/gui/view_bitmap_combo.cpp @@ -216,6 +216,47 @@ namespace NLGUI return CViewBase::getProperty( name ); } + void CViewBitmapCombo::setProperty( const std::string &name, const std::string &value ) + { + if( name == "tx_normal" ) + { + parseTexList( value, _Texs ); + return; + } + else + if( name == "tx_over" ) + { + parseTexList( value, _TexsOver ); + return; + } + else + if( name == "tx_pushed" ) + { + parseTexList( value, _TexsPushed ); + return; + } + else + if( name == "col_normal" ) + { + parseColList( value, _Col ); + return; + } + else + if( name == "col_over" ) + { + parseColList( value, _ColOver ); + return; + } + else + if( name == "col_pushed" ) + { + parseColList( value, _ColPushed ); + return; + } + else + CViewBase::setProperty( name, value ); + } + //======================================================================================= bool CViewBitmapCombo::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup) {