-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTimelineOption.pde
41 lines (40 loc) · 1.33 KB
/
TimelineOption.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
31
32
33
34
35
36
37
38
39
40
41
public class TimelineOption extends FlickableOption {
Button warning;
public TimelineOption(String d, int i, ArrayList<String> e) {
super(d, i, e);
warning = new Button("!", 0, 0, 0, 0, 2*scaleFactor, #FA8A11, 240);
warning.bigFont();
}
public void drawIt(float left, float top, float w, float h, boolean selected, color bg){
warning.move(left + w - 3*h/4, top + h/4, left + w - h/4, top + 3*h/4);
if(selected){
fill(#136EAB);
}
else{
fill(bg);
}
rect(left, top, left + w, top + h);
fill(40);
textAlign(LEFT);
textSize(h/2);
fill(240);
text(display, left + h/4, top + h*.7);
stroke(stroke_color);
if(messages.get(display).size() > (avgY + stdY)){
warning.drawIt();
}
// for(int i = 0; i < listing.size() && i < 12; i++){
// if(timeline_sub.selected != i){
// stroke(stroke_color);
// fill(color(category_colors.get(i), 60));
// rect(left + h/4 + i*h/4, top + 5*h/8, left + h/2 + i*h/4, top + 7*h/8);
// }
// }
// if (listing.size() > timeline_sub.selected){
// stroke(#FF6600);
// fill(color(category_colors.get(timeline_sub.selected), 255));
// rect(left + h/8 + timeline_sub.selected*h/4, top + h/2 - h/8, left + h/2 + timeline_sub.selected*h/4 + h/8, top + 7*h/8);
// }
// stroke(stroke_color);
}
}