mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 18:10:54 +00:00
Added some defaults.
This commit is contained in:
parent
776c95f12f
commit
9382e6d1f9
4 changed files with 17 additions and 10 deletions
|
@ -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…
Reference in a new issue