home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / software / temacd / winamp / winamp508e_full.exe / $0 / scripts / mainmenuoverlay.m < prev    next >
Text File  |  2004-12-20  |  535b  |  25 lines

  1. #include <lib/std.mi>
  2. #include "attribs.m"
  3.  
  4. Function setOverlay();
  5.  
  6. Global Layer VideoVisTextOverlay;
  7.  
  8. System.onScriptLoaded() {
  9.     initAttribs();
  10.     VideoVisTextOverlay=getScriptGroup().findObject("menubar.right.textoverlay");
  11.     setOverlay();
  12. }
  13.  
  14. video_detach_attrib.onDataChanged() {
  15.     setOverlay();
  16. }
  17.  
  18. vis_detach_attrib.onDataChanged() {
  19.     setOverlay();
  20. }
  21.  
  22. setOverlay() {
  23.     if (vis_detach_attrib.getData() == "1" && video_detach_attrib.getData() == "1") VideoVisTextOverlay.hide();
  24.     else VideoVisTextOverlay.show();
  25. }