home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / service / winamp3 / files / skins / Chronabie.wal / scripts / default / cfgbool.maki (.txt) next >
Winamp Compiled Maki Script  |  2002-05-06  |  1KB  |  40 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Text Text2;
  6. Global ToggleButton ToggleButton3;
  7. Global CfgGroup CfgGroup4;
  8. Global Button Button5;
  9.  
  10.  
  11. System.onScriptLoaded()
  12. {
  13. CfgGroup4 = System.getScriptGroup();
  14. Text2 = CfgGroup4.getObject(( "cfg\.txt"));
  15. ToggleButton3 = CfgGroup4.getObject(( "cfg\.toggle"));
  16. Button5 = CfgGroup4.getObject(( "cfg\.toggle2"));
  17. return Null;
  18. }
  19.  
  20. ToggleButton3.onToggle(Boolean onoff)
  21. {
  22. CfgGroup4.cfgSetInt(onoff);
  23. return Null;
  24. }
  25.  
  26. CfgGroup4.onCfgChanged()
  27. {
  28. Text2.setText(CfgGroup4.cfgGetName());
  29. ToggleButton3.setActivated(CfgGroup4.cfgGetInt());
  30. return Null;
  31. }
  32.  
  33. Button5.onLeftClick()
  34. {
  35. ToggleButton3.leftClick();
  36. return Null;
  37. }
  38.  
  39.  
  40.