-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorScreen.pde
More file actions
30 lines (25 loc) · 866 Bytes
/
ErrorScreen.pde
File metadata and controls
30 lines (25 loc) · 866 Bytes
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
//this screen is used to notify the user when the kinect isnt connected
class ErrorScreen {
//Store the vaiables for the kinect and the image
private RedPanda context;
private PImage kinectImage;
public ErrorScreen(RedPanda c) {
this.context = c;
}
//load the error image
public void loadImages() {
this.kinectImage = loadImage("images/kinect.png");
}
public void destroy() {
}
public void drawUI() {
background(255); //set the background to white
println(dataPath(""));
println(sketchPath("xml-exercises"));
image(kinectImage, width/2 - 330, height/2 - 128); //draw the error image
textSize(32); //draw the error message to the screen
text("Camera Not Connected!", width/2, height/2 + 100);
text("Please Connect Camera and Restart Application", width/2, height/2 + 140);
fill(0, 102, 153);
}
}