|
|
|
@ -65,10 +65,8 @@ namespace NLGUI
|
|
|
|
|
if( _ViewText != NULL )
|
|
|
|
|
{
|
|
|
|
|
if( _Parent != NULL )
|
|
|
|
|
_Parent->delView( _ViewText );
|
|
|
|
|
else
|
|
|
|
|
_Parent->delView( _ViewText, true );
|
|
|
|
|
delete _ViewText;
|
|
|
|
|
|
|
|
|
|
_ViewText = NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -124,7 +122,10 @@ namespace NLGUI
|
|
|
|
|
else
|
|
|
|
|
if( name == "hardtext" )
|
|
|
|
|
{
|
|
|
|
|
if( _ViewText != NULL )
|
|
|
|
|
return _ViewText->getText().toString();
|
|
|
|
|
else
|
|
|
|
|
return std::string( "" );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if( name == "text_y" )
|
|
|
|
@ -139,7 +140,10 @@ namespace NLGUI
|
|
|
|
|
else
|
|
|
|
|
if( name == "text_underlined" )
|
|
|
|
|
{
|
|
|
|
|
if( _ViewText != NULL )
|
|
|
|
|
return toString( _ViewText->getUnderlined() );
|
|
|
|
|
else
|
|
|
|
|
return std::string( "" );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if( name == "text_posref" )
|
|
|
|
@ -280,6 +284,7 @@ namespace NLGUI
|
|
|
|
|
else
|
|
|
|
|
if( name == "hardtext" )
|
|
|
|
|
{
|
|
|
|
|
if( _ViewText != NULL )
|
|
|
|
|
_ViewText->setText( value );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -303,8 +308,10 @@ namespace NLGUI
|
|
|
|
|
if( name == "text_underlined" )
|
|
|
|
|
{
|
|
|
|
|
bool b;
|
|
|
|
|
if( _ViewText != NULL )
|
|
|
|
|
if( fromString( value, b ) )
|
|
|
|
|
_ViewText->setUnderlined( b );
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -813,6 +820,8 @@ namespace NLGUI
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// Setup ViewText color
|
|
|
|
|
if( _ViewText != NULL )
|
|
|
|
|
{
|
|
|
|
|
if ( pTxId==_TextureIdNormal || editorMode )
|
|
|
|
|
{
|
|
|
|
|
if(_TextHeaderColor) viewTextColor.A= _TextColorNormal.A;
|
|
|
|
@ -840,6 +849,7 @@ namespace NLGUI
|
|
|
|
|
if(getFrozen() && getFrozenHalfTone())
|
|
|
|
|
_ViewText->setAlpha(_ViewText->getAlpha()>>2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
@ -978,5 +988,11 @@ namespace NLGUI
|
|
|
|
|
_Parent->delView( _ViewText, true );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CCtrlTextButton::onWidgetDeleted( CInterfaceElement *e )
|
|
|
|
|
{
|
|
|
|
|
if( e == _ViewText )
|
|
|
|
|
_ViewText = NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|