File: screen_image2.ssc

package info (click to toggle)
stellarium 0.10.5-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 57,884 kB
  • ctags: 26,597
  • sloc: ansic: 347,123; cpp: 56,161; perl: 995; python: 427; sh: 151; pascal: 140; sql: 131; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Name: ScreenImageMgr Demo
// License: Public Domain
// Author: Matthew Gates
// Description: An example script showing how to use the ScreenImageMgr module.
//

include("status_label.inc");
useStatusLabel("ScreenImageMgr test 2: ", 50, 50, 16, "#ff0000");

status("image start on fades out (1 sec), wait a second, fades on (1 sec), wait a second then unload");
core.wait(2.0);
ScreenImageMgr.createScreenImage("logo", "../textures/earthmap.png", 50, 150, 1.0, true, 1.0, 1.0);
status("loaded");
core.wait(1);
status("fading out");
ScreenImageMgr.showImage("logo", false);
core.wait(2);
status("fading in");
ScreenImageMgr.showImage("logo", true);
core.wait(2);
ScreenImageMgr.deleteAllImages();
status("again, but with opacity 50%");
core.wait(2.0);
ScreenImageMgr.createScreenImage("logo", "../textures/earthmap.png", 50, 150, 1.0, true, 0.5, 1.0);
status("loaded");
core.wait(1);
status("fading out");
ScreenImageMgr.showImage("logo", false);
core.wait(2);
status("fading in");
ScreenImageMgr.showImage("logo", true);
core.wait(2);
ScreenImageMgr.deleteAllImages();
LabelMgr.deleteAllLabels();