-
Notifications
You must be signed in to change notification settings - Fork 0
/
unmodcaucusclick.pde
30 lines (30 loc) · 1.37 KB
/
unmodcaucusclick.pde
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
public void unmodcaucusclick(GButton source, GEvent event) { //_CODE_:unmodcaucus:576276:
clearscreen();
background(backgroundcolour);
modetype = "unmodcaucus";
mode = new GLabel(this, width / 2, 50, 500, 200);
mode.setFont(new Font("Arial", Font.PLAIN, 40));
mode.setTextAlign(GAlign.CENTER, GAlign.MIDDLE);
mode.setText("");
mode.setText("Unoderated Caucus");
modetype = "unmodcaucus";
println("unmodcaucus - GButton >> GEvent." + event + " @ " + millis());
textSize(24);
mode.setText("Unmoderated Caucus");
textSize(12);
loadingbar = loadImage("images/loadingbar.png");
loadingbarcaucus = loadImage("images/loadingbarinside.png");
image(loadingbar, width / 4, 2 * height / 3 + loadingbar.height, width / 2, loadingbar.height);
start = new GButton(this, (width / 2 - width / 14) - width/7, 6 * height / 7, width / 7, 40);
start.setText("Start");
start.addEventHandler(this, "startclick");
start.setVisible(true);
reset = new GButton(this, width / 2 - width/14, 6 * height / 7, width / 7, 40);
reset.setText("Reset");
reset.addEventHandler(this, "resetclick");
reset.setVisible(true);
pause = new GButton(this, (width / 2 -width/14) + width/7, 6 * height / 7, width / 7, 40);
pause.setText("Pause");
pause.addEventHandler(this, "pauseclick");
pause.setVisible(true);
} //_CODE_:unmodcaucus:576276: