Yeah, the help file for the 'Fade' action isn't as comprehensive as I thought it is, I'll fix that in the next release and describe it more clearly.
Before the window can be 'fade in' it has to be 'fade out' previously, otherwise the window will just remain visible without any effect.
Here's
Example-2 with fading effects:
Section1 {
Autoexec("Fade(FADE_IN)")
//We first set the window values
//Size it to fit the background picture's size
//Make the backgroundcolour dark
//And put our new title into the taskbar button
Window("x y w400 h220","000000","Example #2")
//We then position the movebox, to make the titlebar, that's painted onto our background picture, act like one
Movebox("x0 y0 w400 h25")
//After the launcher window is set up, we put our background picture in it
Image("Background.png","","x0 y0 w400 h220")
//And create a titlebar
Image("Titlebar-1N.png","Titlebar-1R.png","x325 y0 w27 h18")
Image("Titlebar-2N.png","Titlebar-2R.png","x352 y0 w43 h18")
//We also put in the Button's images
Image("Button-N.png","Button-H.png","x5 y30 w102 h21")
Image("$Last","$Last","x115 y30 w102 h21")
Image("$Last","$Last","x180 y185 w205 h21")
//Configure the text's new font
Font("Arial","FFFFFF","9","Bold")
//Give the titlebar some text
Text("Game Launcher - Section1","x5 y5 w200 h15")
//And add texts onto the button images
Text("Section 2","x30 y32 w102 h15")
Text("Section 3","x140 y32 w102 h15")
Text("Exit Game","x250 y187 w205 h15")
//Lastly, we give the buttons some actions
Rect("x325 y0 w27 h18","Minimize()")
Rect("x352 y0 w43 h18","Fade(FADE_OUT); Exit()")
Rect("x5 y30 w102 h21","Fade(FADE_OUT); Switch(Section2)")
Rect("x115 y30 w102 h21","Fade(FADE_OUT); Switch(Section3)")
Rect("x180 y185 w205 h21","Exit()")
}
Section2 {
Autoexec("Fade(FADE_IN)")
//After the launcher window is set up, we put our background picture in it
Image("Background.png","","x0 y0 w400 h220")
//And create a titlebar
Image("Titlebar-1N.png","Titlebar-1R.png","x325 y0 w27 h18")
Image("Titlebar-2N.png","Titlebar-2R.png","x352 y0 w43 h18")
//We also put in the Button's images
Image("Button-N.png","Button-H.png","x180 y185 w205 h21")
//Give the titlebar some text
Text("Game Launcher - Section2","x5 y5 w200 h15")
//And add texts onto the button images
Text("Back","x270 y187 w205 h15")
//Lastly, we give the buttons some actions
Rect("x325 y0 w27 h18","Minimize()")
Rect("x352 y0 w43 h18","Fade(FADE_OUT); Exit()")
Rect("x180 y185 w205 h21","Fade(FADE_OUT); Switch(Section1)")
}
Section3 {
Autoexec("Fade(FADE_IN)")
//After the launcher window is set up, we put our background picture in it
Image("Background.png","","x0 y0 w400 h220")
//And create a titlebar
Image("Titlebar-1N.png","Titlebar-1R.png","x325 y0 w27 h18")
Image("Titlebar-2N.png","Titlebar-2R.png","x352 y0 w43 h18")
//We also put in the Button's images
Image("Button-N.png","Button-H.png","x180 y185 w205 h21")
//Give the titlebar some text
Text("Game Launcher - Section3","x5 y5 w200 h15")
//And add texts onto the button images
Text("Back","x270 y187 w205 h15")
//Lastly, we give the buttons some actions
Rect("x325 y0 w27 h18","Minimize()")
Rect("x352 y0 w43 h18","Fade(FADE_OUT); Exit()")
Rect("x180 y185 w205 h21","Fade(FADE_OUT); Switch(Section1)")
}
-Doomster