blob: fba5e65878bc1266280fea2f6c8e62f15267bcdb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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();
}
|