Beispiel #1
0
void UILabel::SetFontParms( const VRMenuFontParms &parms )
{
	FontParms = parms;
	VRMenuObject * object = GetMenuObject();
	if ( object != NULL )
	{
		object->SetFontParms( parms );
	}
}
Beispiel #2
0
void UILabel::SetFontScale( float const scale )
{
	VRMenuObject * object = GetMenuObject();
	assert( object );

	FontParms.Scale = scale;
	object->SetFontParms( FontParms );

}
Beispiel #3
0
void UILabel::SetVerticalAlign( const VerticalJustification vert )
{
	FontParms.AlignVert = vert;
	VRMenuObject * object = GetMenuObject();
	if ( object != NULL )
	{
		object->SetFontParms( FontParms );
		CalculateTextOffset();
	}
}
Beispiel #4
0
void UILabel::SetHorizontalAlign( const HorizontalJustification horiz )
{
	FontParms.AlignHoriz = horiz;
	VRMenuObject * object = GetMenuObject();
	if ( object != NULL )
	{
		object->SetFontParms( FontParms );
		CalculateTextOffset();
	}
}