File: real_time.ssc

package info (click to toggle)
stellarium 24.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 911,396 kB
  • sloc: ansic: 317,377; cpp: 204,602; xml: 48,590; javascript: 26,348; python: 1,254; perl: 1,108; sh: 207; makefile: 190; pascal: 169
file content (18 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
// Name: RealTime Test
// License: Public Domain
// Author: Matthew Gates
// Description: Check whether Stellarium uses real time
//

LabelMgr.deleteAllLabels();

var labId = LabelMgr.labelScreen("realtime=", 20, core.getScreenHeight()-150, true, 15, "#aaaaaa");

for(i=0; i<10; i+=0.2)
{
	LabelMgr.setLabelText(labId, "realtime=" + core.isRealTime());
	core.wait(0.2);
}

LabelMgr.deleteAllLabels();