mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-04 19:59:39 +01:00
25 lines
511 B
Objective-C
25 lines
511 B
Objective-C
#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();
|
|
} |