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[ 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

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

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

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

Loading…
Cancel
Save