-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclearscreen.pde
More file actions
51 lines (51 loc) · 1.4 KB
/
Copy pathclearscreen.pde
File metadata and controls
51 lines (51 loc) · 1.4 KB
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
43
44
45
46
47
48
49
50
51
public void clearscreen(){
background(backgroundcolour);
positionspeaking.setText("");
mode.setText("");
positionspeaking.setText("");
modcaucustime.stop();
timespoken.stop();
caucustimertimer.stop();
spokentimertimer.stop();
if(positionspeaking != null && positionspeaking.isVisible()){
positionspeaking.setVisible(false);
}
if(speakerdrop != null && speakerdrop.isVisible()){
speakerdrop.setVisible(false);
}
if(start != null && start.isVisible()){
start.setVisible(false);
}
if(next != null && next.isVisible()){
next.setVisible(false);
}
if(reset != null && reset.isVisible()){
reset.setVisible(false);
}
if(pause != null && pause.isVisible()){
pause.setVisible(false);
}
if(speaktime != null && speaktime.isVisible()){
speaktime.setVisible(false);
}
if(perpetual != null && perpetual.isVisible()){
perpetual.setVisible(false);
}
spokentimerbarlabel.setText("");
caucustimerbarlabel.setText("");
if(timespoken.isRunning() == false){
timespoken.stop();
}
if(modcaucustime.isRunning() == false){
modcaucustime.stop();
}
if(spokentimertimer.isRunning() == false){
spokentimertimer.stop();
}
if(caucustimertimer.isRunning() == false){
caucustimertimer.stop();
}
if(perpetual != null && perpetual.isVisible()){
perpetual.setVisible(false);
}
}