lines of scripted text displayed in reverse order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Version 0.10.2 works as expected on both computers below, with text being read from left to right and top to bottom of screen. Last line appears to be referenced to the bottom-left of the screen.
However,
scripted text, using the same script generated on 0.10.2 but used in versions 0.10.3 &.4, displays text from left to right, bottom to top, apparently referenced to top-left of screen. In other words, each line of text is displayed in reverse order as compared to display in 0.10.2. Also, blank lines of text move text up in 0.10.2 but move lines down in 0.10.3 and 0.10.4.
All three computers run the entire script from beginning to end. Each text display of seven is as described.
The error applies to versions 0.10.3 and 0.10.4 on two different computers; all Os's up-to-date:
1) HP Pavillion 7667c (dual core, 32-bit Media version, 2 Gb RAM) with OS=WinXpPro
NVIDIA GeFOrce 7500 LE using 24" LCD monitor
2) ASUS (i3, 64-bit, 4Gb RAM) and OS=Win7.
Display adapter = Intel (R) Graphics Media Accelerator HD with 15" BrightLite LCD screen
----------
I THINK that the display Y-axis values are inverted, X-axis values are OK.
----------
function blockText(
{ var fontSize = 20;
var lineSep = fontSize * 1.5;
y = 50 + (lineSep*
ids = new Array();
for(i=0; i<textArray.length; i++)
{ ids[i] = LabelMgr.
y = y - lineSep;
}
for(i=0; i<ids.length; i++)
{ LabelMgr.
core.wait(0.15);
}
return ids;
}
function clearLabels(ids)
{ for(i=0; i<ids.length; i++)
{ LabelMgr.
core.wait(0.10); }
for(i=0; i<ids.length; i++)
{ LabelMgr.
}
--------------
// Display Welcome and inital information
ids = blockText(Array(" This is the stuff of science fiction! ","",
"This is a simulation of what an observer could see if he/she were on the ground, then",
"flying a specific route in a very fast airplane, then landing at her/his destination.","",
"The initial location will be somewhere that dawn has begun; his/her view of the sunrise",
"will be what is normally seen when on the ground. A full day of 24 hours will pass.","",
"Because it appears that the sun moves, the observer's view will shift also.",
"Viewing the dawn is most important, therefore day and night views will be speeded up.","",
"Note especially the initial motion of the sun as it rises during dawn and early morning.",""));
core.wait(35);
clearLabels(ids);
=============
John Plaxton
<email address hidden>
The behaviour of the engine was changed (y=0 now means top of the screen). Please update your script to reverse the offset.