mainmenuoverlay.m 511 B

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