diff --git a/code/nel/src/gui/ctrl_text_button.cpp b/code/nel/src/gui/ctrl_text_button.cpp
index 8dbe9b912..cdf006a51 100644
--- a/code/nel/src/gui/ctrl_text_button.cpp
+++ b/code/nel/src/gui/ctrl_text_button.cpp
@@ -237,6 +237,11 @@ namespace NLGUI
_TextureIdNormal[ 0 ].setTexture( std::string( value + "_l.tga" ).c_str() );
_TextureIdNormal[ 1 ].setTexture( std::string( value + "_m.tga" ).c_str() );
_TextureIdNormal[ 2 ].setTexture( std::string( value + "_r.tga" ).c_str() );
+
+ CViewRenderer &rVR = *CViewRenderer::getInstance();
+ rVR.getTextureSizeFromId(_TextureIdNormal[0], _BmpLeftW, _BmpH);
+ rVR.getTextureSizeFromId(_TextureIdNormal[1], _BmpMiddleW, _BmpH);
+ rVR.getTextureSizeFromId(_TextureIdNormal[2], _BmpRightW, _BmpH);
return;
}
else
@@ -891,7 +896,9 @@ namespace NLGUI
CViewBase *v = CWidgetManager::getInstance()->getParser()->createClass( "text" );
nlassert( v != NULL );
_ViewText = dynamic_cast< CViewText* >( v );
+ _ViewText->setId( _Id + "_text" );
_ViewText->setText( ucstring( "text" ) );
+ _ViewText->setSerializable( false );
}
// setup the viewText and add to parent
diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlBaseButton.xml b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlBaseButton.xml
index 722d1b241..42e2bdef1 100644
--- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlBaseButton.xml
+++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlBaseButton.xml
@@ -11,7 +11,7 @@
button_type
string
- toggle_button
+ push_button
pushed
diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlButton.xml b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlButton.xml
index cb6f6c099..fb2514e7c 100644
--- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlButton.xml
+++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlButton.xml
@@ -12,17 +12,17 @@
tx_normal
string
-
+ log_but_r.tga
tx_pushed
string
-
+ log_but_r.tga
tx_over
string
-
+ log_but_over_r.tga
scale
diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlTextButton.xml b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlTextButton.xml
index 8826cd5db..cacc45ccb 100644
--- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlTextButton.xml
+++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/widgets/CtrlTextButton.xml
@@ -12,27 +12,27 @@
tx_normal
string
-
+ but
tx_pushed
string
-
+ but
tx_over
string
-
+ but_over
hardtext
string
-
+ text
wmargin
int
- 0
+ 20
wmin
@@ -152,7 +152,7 @@
line_maxw
int
- 0
+ 200
multi_line_space