Debian Codegraph @

Contrib/AdvSplash/advsplash.txt

raw
1 AdvSplash.dll - small (5.5k), simple plugin that lets you throw
2 up a splash screen in NSIS installers with cool
3 fading effects (Win2000+) and transparency.
4
5 To use:
6
7 Create a .BMP file of your splash screen.
8 Create a .WAV file to play while your splash screen shows. (optional)
9
10 Add the following lines to your .NSI file:
11
12 Function .onInit
13 InitPluginsDir
14 File "/oname=$PluginsDir\spltmp.bmp" "${NSISDIR}\Contrib\Graphics\Wizard\llama.bmp"
15
16 ; optional
17 ; File /oname=$PluginsDir\spltmp.wav "my_splashsound.wav"
18
19 advsplash::show 1000 600 400 -1 $PluginsDir\spltmp
20
21 Pop $0 ; $0 has '1' if the user closed the splash screen early,
22 ; '0' if everything closed normally, and '-1' if some error occurred.
23
24 FunctionEnd
25
26 Calling format
27 advsplash::show Delay FadeIn FadeOut KeyColor FileName
28
29 Delay - length to show the screen for (in milliseconds)
30 FadeIn - length to show the fadein scene (in ms) (not included in Delay)
31 FadeOut - length to show the fadeout scene (in ms) (not included in Delay)
32 KeyColor - color used for transparency, could be any RGB value
33 (for ex. R=255 G=100 B=16 -> KeyColor=0xFF6410),
34 use KeyColor=-1 if there is no transparent color in your image.
35 FileName - splash bitmap filename (without the .bmp). The BMP file used will be
36 this parameter.bmp, and the wave file used (if present) will be this
37 parameter.wav.
38
39 (If you already have an .onInit function, put that in it)
40
41 Note 1: fadein/fadeout supported only on win2k/winxp systems, all other systems
42 will show simple splash screen with Delay = Delay + FadeIn + FadeOut. Also, I've
43 noted my winXP uses no transparent color at 16 bpp, so at bpps lower than 32
44 for images with transparent color no fading effect will occur.
45
46 Note 2: the return value of splash is 1 if the user closed the splash
47 screen early (pop it from the stack)
48
49 -Justin
50 Converted to a plugin DLL by Amir Szekely (kichik)
51 Fading and transparency by Nik Medved (brainsucker)