home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Anime_Shogo.wal / scripts / checkbox.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-08-15  |  2KB  |  83 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Int Int2;
  6. Global Text Text11;
  7. Global ToggleButton ToggleButton12;
  8. Global String String13;
  9. Global Int Int16;
  10.  
  11. Function func0();
  12.  
  13. func0()
  14. {
  15. Double Double3;
  16. Double3 = System.getRuntimeVersion();
  17. if(( ( Double3 > 1) || ( Double3 < 65535))) {
  18. Int2 = 1;
  19. System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.02\ \(skin\ version\ 1\.1\)")), ( "Error"), 1, ( ""));
  20. return 0;
  21. }
  22. return 1;
  23. }
  24.  
  25. System.onScriptLoaded()
  26. {
  27. if(! func0()) {
  28. return Null;
  29. }
  30. Text11 = System.getScriptGroup().getObject(( "checkbox\.text"));
  31. ToggleButton12 = System.getScriptGroup().getObject(( "checkbox\.toggle"));
  32. return Null;
  33. }
  34.  
  35. System.onSetXuiParam(String param, String value)
  36. {
  37. if(Int2) {
  38. return Null;
  39. }
  40. if(( System.strupper(param) == ( "USETEXT"))) {
  41. Text11.setText(value);
  42. }
  43. if(( System.strupper(param) == ( "PRIVATEINTITEM"))) {
  44. String13 = value;
  45. }
  46. if(( System.strupper(param) == ( "DEFAULT"))) {
  47. Int16 = System.StringToInteger(value);
  48. }
  49. if(( ( ( String13 != ( "")) && ( ( "0") != ( ""))) && ( Int16 != 999))) {
  50. ToggleButton12.setActivated(System.getPrivateInt(System.getSkinName(), String13, Int16));
  51. }
  52. return Null;
  53. }
  54.  
  55. ToggleButton12.onLeftClick()
  56. {
  57. if(Int2) {
  58. return Null;
  59. }
  60. ToggleButton12.setActivated(( ! ToggleButton12.getActivated()));
  61. return Null;
  62. }
  63.  
  64. Text11.onLeftButtonUp(int x, int y)
  65. {
  66. if(Int2) {
  67. return Null;
  68. }
  69. ToggleButton12.setActivated(( ! ToggleButton12.getActivated()));
  70. return Null;
  71. }
  72.  
  73. ToggleButton12.onActivate(int activated)
  74. {
  75. if(Int2) {
  76. return Null;
  77. }
  78. System.setPrivateInt(System.getSkinName(), String13, activated);
  79. return Null;
  80. }
  81.  
  82.  
  83.