-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdisplaymode.js
42 lines (38 loc) · 971 Bytes
/
displaymode.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Hooks.on('ready', () => {
$('#logo').click(ev => {
window.hideUI = !window.hideUI;
if (window.hideUI) {
$('#sidebar').hide();
$('#navigation').hide();
$('#controls').hide();
$('#players').hide();
$('#hotbar').hide();
} else {
$('#sidebar').show();
$('#navigation').show();
$('#controls').show();
$('#players').show();
$('#hotbar').show();
}
});
});
Hooks.on('renderSceneNavigation', (app,html) => {
if (window.hideUI) {
html.hide();
}
});
Hooks.on('renderSceneControls', (app, html) => {
if (window.hideUI) {
html.hide();
}
});
Hooks.on('renderSidebarTab', (app, html) => {
if (window.hideUI) {
html.hide();
}
});
Hooks.on('renderCombatTracker', (app, html) => {
if (window.hideUI) {
html.hide();
}
});