Added some defaults.

--HG--
branch : gsoc2012-gui-editor
hg/feature/sse2
dfighter1985 12 years ago
parent 25195fce4c
commit b49a6ca04d

@ -237,6 +237,11 @@ namespace NLGUI
_TextureIdNormal[ 0 ].setTexture( std::string( value + "_l.tga" ).c_str() ); _TextureIdNormal[ 0 ].setTexture( std::string( value + "_l.tga" ).c_str() );
_TextureIdNormal[ 1 ].setTexture( std::string( value + "_m.tga" ).c_str() ); _TextureIdNormal[ 1 ].setTexture( std::string( value + "_m.tga" ).c_str() );
_TextureIdNormal[ 2 ].setTexture( std::string( value + "_r.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; return;
} }
else else
@ -891,7 +896,9 @@ namespace NLGUI
CViewBase *v = CWidgetManager::getInstance()->getParser()->createClass( "text" ); CViewBase *v = CWidgetManager::getInstance()->getParser()->createClass( "text" );
nlassert( v != NULL ); nlassert( v != NULL );
_ViewText = dynamic_cast< CViewText* >( v ); _ViewText = dynamic_cast< CViewText* >( v );
_ViewText->setId( _Id + "_text" );
_ViewText->setText( ucstring( "text" ) ); _ViewText->setText( ucstring( "text" ) );
_ViewText->setSerializable( false );
} }
// setup the viewText and add to parent // setup the viewText and add to parent

@ -11,7 +11,7 @@
<property> <property>
<name>button_type</name> <name>button_type</name>
<type>string</type> <type>string</type>
<default>toggle_button</default> <default>push_button</default>
</property> </property>
<property> <property>
<name>pushed</name> <name>pushed</name>

@ -12,17 +12,17 @@
<property> <property>
<name>tx_normal</name> <name>tx_normal</name>
<type>string</type> <type>string</type>
<default></default> <default>log_but_r.tga</default>
</property> </property>
<property> <property>
<name>tx_pushed</name> <name>tx_pushed</name>
<type>string</type> <type>string</type>
<default></default> <default>log_but_r.tga</default>
</property> </property>
<property> <property>
<name>tx_over</name> <name>tx_over</name>
<type>string</type> <type>string</type>
<default></default> <default>log_but_over_r.tga</default>
</property> </property>
<property> <property>
<name>scale</name> <name>scale</name>

@ -12,27 +12,27 @@
<property> <property>
<name>tx_normal</name> <name>tx_normal</name>
<type>string</type> <type>string</type>
<default></default> <default>but</default>
</property> </property>
<property> <property>
<name>tx_pushed</name> <name>tx_pushed</name>
<type>string</type> <type>string</type>
<default></default> <default>but</default>
</property> </property>
<property> <property>
<name>tx_over</name> <name>tx_over</name>
<type>string</type> <type>string</type>
<default></default> <default>but_over</default>
</property> </property>
<property> <property>
<name>hardtext</name> <name>hardtext</name>
<type>string</type> <type>string</type>
<default></default> <default>text</default>
</property> </property>
<property> <property>
<name>wmargin</name> <name>wmargin</name>
<type>int</type> <type>int</type>
<default>0</default> <default>20</default>
</property> </property>
<property> <property>
<name>wmin</name> <name>wmin</name>
@ -152,7 +152,7 @@
<property> <property>
<name>line_maxw</name> <name>line_maxw</name>
<type>int</type> <type>int</type>
<default>0</default> <default>200</default>
</property> </property>
<property> <property>
<name>multi_line_space</name> <name>multi_line_space</name>

Loading…
Cancel
Save