winamp/Src/resources/skins/Winamp Modern/scripts/mainmenuoverlay.m

25 lines
511 B
Mathematica
Raw Normal View History

2024-09-24 12:54:57 +00:00
#include <lib/std.mi>
#include "attribs.m"
Function setOverlay();
Global Layer VideoVisTextOverlay;
System.onScriptLoaded() {
initAttribs();
VideoVisTextOverlay=getScriptGroup().findObject("menubar.right.textoverlay");
setOverlay();
}
video_detach_attrib.onDataChanged() {
setOverlay();
}
vis_detach_attrib.onDataChanged() {
setOverlay();
}
setOverlay() {
if (vis_detach_attrib.getData() == "1" && video_detach_attrib.getData() == "1") VideoVisTextOverlay.hide();
else VideoVisTextOverlay.show();
}