Tim_Schmidt

SGLauncher Old Syntax

May 23rd, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. Main {
  2. /*
  3. We first set the window values
  4. Size it to fit the background picture's size
  5. Make the backgroundcolour dark
  6. And put our new title into the taskbar button
  7. */
  8. Window("x y w400 h220","000000","Example #1")
  9. //We then position the movebox, to make the titlebar, that's painted onto our background picture, act like one
  10. Movebox("x0 y0 w400 h25")
  11.  
  12. //Execute one of the specified actionlists (chosen randomly)
  13. Autoexec("ExeclistRnd(Screen1 Screen2 Screen3 Screen4)")
  14.  
  15. //After the launcher window is set up, we put our background picture in it
  16. Image("Background.png","","x0 y0 w400 h220")
  17.  
  18. //We also put in the Button's images
  19. Image("Button-N.png","Button-H.png","x180 y135 w205 h21")
  20. Image("$Last","$Last","x180 y160 w205 h21")
  21. Image("$Last","$Last","x180 y185 w205 h21")
  22.  
  23. //And maybe a screenshot to show the user what he can expect?
  24. Image("Screen-1-Thumb.jpg","","x5 y30 w145 h110","PreviewImage")
  25. //Show some text, when the user hovers the screenshot
  26. Mouseover("x5 y30 w145 h110","Tip(Hello! This is an example screenshot of my game!)","Tip()")
  27.  
  28. //Configure the text's new font
  29. Font("Arial","FFFFFF","9","Bold")
  30. //Give the titlebar some text
  31. Text("Game Launcher","x5 y5 w100 h15")
  32. //And add texts onto the button images
  33. Text("Start Game","x250 y137 w100 h15")
  34. Text("About Game","x250 y162 w100 h15")
  35. Text("Exit Game","x250 y187 w205 h15")
  36.  
  37. //Actionlist that alter the preview image (for random screenshots)
  38. Screen1 [ SetID(PreviewImage); SetImage(Screen-1-Thumb.jpg) ]
  39. Screen2 [ SetID(PreviewImage); SetImage(Screen-2-Thumb.jpg) ]
  40. Screen3 [ SetID(PreviewImage); SetImage(Screen-3-Thumb.jpg) ]
  41. Screen4 [ SetID(PreviewImage); SetImage(Screen-4-Thumb.jpg) ]
  42.  
  43. //Lastly, we give the buttons some actions
  44. Rect("x180 y135 w205 h21","Msg(You may execute a game, once this button is pressed!)")
  45. Rect("x180 y165 w205 h21","Msg(About\n\nExample Launcher)")
  46. Rect("x180 y185 w205 h21","Exit()")
  47. }
Advertisement
Add Comment
Please, Sign In to add comment