Hud .label
Posted: November 5th, 2011, 4:18 pm
Sorry for filling the forum with my questions
This one will be the last for now
What is wrong with my hud? How is it possible that I only see the iPrintLnBolds and the hud Message 1 and Message end?

This one will be the last for now

What is wrong with my hud? How is it possible that I only see the iPrintLnBolds and the hud Message 1 and Message end?
Code: Select all
HUD_TEST()
{
if( isDefined( self.HUD_text ))
self.HUD_text destroy();
wait 0.05;
self.HUD_text = newClientHudElem( self );
self.HUD_text.x = -300;
self.HUD_text.y = 300;
self.HUD_text.horzAlign = "center_safearea";
self.HUD_text.vertAlign = "top";
self.HUD_text.alignX = "left";
self.HUD_text.alignY = "middle";
self.HUD_text.sort = 102;
self.HUD_text.foreground = 1;
self.HUD_text.archived = false;
self.HUD_text.alpha = 1;
self.HUD_text.fontScale = 1.9;
self.HUD_text.hidewheninmenu = false;
self.HUD_text.color = (.99, .99, .99);
i = 3;
special = "Special message";
while(1)
{
self.HUD_text.label = &"Message 1"; // I see this one
self iPrintLnBold( "1" );
wait i;
self.HUD_text.label = special; // This one fails
self iPrintLnBold( "2" );
wait i;
self.HUD_text.label = &"" + special; // This one fails
self iPrintLnBold( "3" );
wait i;
self.HUD_text.label = &" " + special; // This one fails
self iPrintLnBold( "4" );
wait i;
self.HUD_text.label = &"" + special + ""; // This one fails
self iPrintLnBold( "5" );
wait i;
self.HUD_text.label = &" " + special + " "; // This one fails
self iPrintLnBold( "6" );
wait i;
self.HUD_text.label = &"Message end"; // And I see this one
self iPrintLnBold( "7" );
wait i;
}
}