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

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Layer Layer11;
  6. Global Layer Layer12;
  7. Global Group Group13;
  8. Global Text Text14;
  9. Global CheckBox CheckBox15;
  10. Global Boolean Boolean16;
  11.  
  12. Function func860();
  13.  
  14. System.onScriptLoaded()
  15. {
  16. Group Group19;
  17. Group Group21;
  18. Group19 = System.getContainer(( "Main")).getLayout(( "normal"));
  19. Group21 = System.getContainer(( "config")).getLayout(( "normal"));
  20. Layer11 = Group19.findObject(( "BackLight"));
  21. Layer12 = Group19.findObject(( "Light"));
  22. Group13 = Group19.findObject(( "SoftLightGrp"));
  23. Text14 = Group19.findObject(( "Songticker"));
  24. CheckBox15 = Group21.findObject(( "config\.display\.on"));
  25. CheckBox15.setChecked(System.getPrivateInt(System.getSkinName(), ( "BackLightMode"), 1));
  26. Boolean16 = System.getPrivateInt(System.getSkinName(), ( "BackLightMode"), 1);
  27. if(Boolean16) {
  28. Layer12.setXmlParam(( "Alpha"), ( "150"));
  29. Group13.setXmlParam(( "Alpha"), ( "200"));
  30. } else {
  31. Group13.hide();
  32. }
  33. return Null;
  34. }
  35.  
  36. System.onScriptUnloading()
  37. {
  38. return Null;
  39. }
  40.  
  41. CheckBox15.onToggle(int newstate)
  42. {
  43. System.setPrivateInt(System.getSkinName(), ( "BackLightMode"), newstate);
  44. if(newstate) {
  45. Boolean16 = 0;
  46. } else {
  47. Boolean16 = 1;
  48. }
  49. func860();
  50. return Null;
  51. }
  52.  
  53. Layer12.onTargetReached()
  54. {
  55. if(Boolean16) {
  56. Group13.show();
  57. Group13.setTargetA(200);
  58. Group13.setTargetSpeed(( 0.5));
  59. Group13.gotoTarget();
  60. }
  61. return Null;
  62. }
  63.  
  64. Group13.onTargetReached()
  65. {
  66. if(( ! Boolean16)) {
  67. Layer12.setTargetA(0);
  68. Layer12.setTargetSpeed(( 0.5));
  69. Layer12.gotoTarget();
  70. Group13.hide();
  71. }
  72. return Null;
  73. }
  74.  
  75. func860()
  76. {
  77. if(( ( ! Group13.isGoingToTarget()) || ( ! Layer12.isGoingToTarget()))) {
  78. if(Boolean16) {
  79. Boolean16 = 0;
  80. Group13.setTargetA(0);
  81. Group13.setTargetSpeed(( 0.5));
  82. Group13.gotoTarget();
  83. System.setPrivateInt(System.getSkinName(), ( "BackLightMode"), Boolean16);
  84. } else {
  85. Boolean16 = 1;
  86. Layer12.setTargetA(150);
  87. Layer12.setTargetSpeed(( 0.5));
  88. Layer12.gotoTarget();
  89. System.setPrivateInt(System.getSkinName(), ( "BackLightMode"), Boolean16);
  90. }
  91. }
  92. return Null;
  93. }
  94.  
  95.  
  96.