File: real_time.ssc

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (18 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (6)
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();