When I add a label by script (using the LabelMgr.labelScreen method), the
label fades in on the screen. Is there a way to display a label immediately on
the screen by script (e.g. for displaying a fast updating label sequence of
the current time)?.
Thanx for help,
I don't think there is a way
But I agree, it would be much better if the label instantly appeared instead
of slowly appearing.
They way it is now, you can't do count downs or display real time updates
because you would have to continuously pause the script (with core.wait) to
wait for the text to display.
When you use LabelMgr.deleteAllLabels(); the text instantly goes away which
should mean if can instantly go away it can instantly appear. So it doesn't
look like a defect/limitation in the scripting program but it appears the
creators were going for some cool fade in effect.
The only way I have found to get close is to setup the label with no text,
wait the fade time (or do calculations or something for a bit), then change
the label text to what you want. i.e.:
label = LabelMgr.labelScreen("", 100, 100, true, 15, "#FFFFFF");
LabelMgr.setLabelText(label, "Hello, world.");
Log in to post a comment.