@@ -18,7 +18,7 @@ boolean acceptOver = false;
18
18
boolean noJruby = false ;
19
19
boolean selected = false ;
20
20
boolean eightOne = false ;
21
- String jruby = " \" true\" " ;
21
+ String jruby = " true" ;
22
22
23
23
void setup () {
24
24
size (600 , 200 );
@@ -67,7 +67,7 @@ void draw() {
67
67
text (processingRoot + (frameCount / 10 % 2 == 0 ? " _" : " " ), 35 , 56 );
68
68
fill (0 , 0 , 200 );
69
69
text (" Select nojruby to use jruby-complete by default" , 35 , 140 );
70
- update(mouseX , mouseY );
70
+ update();
71
71
// background(200);
72
72
73
73
if (acceptOver) {
@@ -98,16 +98,20 @@ void writeRoot() {
98
98
if (! yaml. exists()) {
99
99
try {
100
100
PrintWriter writer = new PrintWriter (config, " UTF-8" );
101
- writer. println(String . format( " --- # config.yml" ) );
101
+ writer. println(" --- # config.yml" );
102
102
writer. println(String . format(" PROCESSING_ROOT: %s" , processingRoot));
103
- writer. println(String . format(" JRUBY: %s" , jruby));
103
+ writer. println(String . format(" JRUBY: %s # set to false to use jruby-complete " , jruby));
104
104
writer. println(String . format(" sketchbook_path: %s" , sketchbookPath));
105
+ writer. println(" template: bare # class or emacs" );
106
+ writer. println(" java_args: # global jvm option, overridden by data/java_args.txt" );
105
107
writer. close();
106
108
}
107
109
catch (FileNotFoundException ex) {
108
110
}
109
111
catch (UnsupportedEncodingException ex) {
110
112
}
113
+ } else {
114
+ System . out. println(" Config exists not overwriting!!!" );
111
115
}
112
116
processingRoot = done;
113
117
}
@@ -132,14 +136,14 @@ void keyReleased() {
132
136
}
133
137
}
134
138
135
- void update (float x , float y ) {
139
+ void update () {
136
140
acceptOver = enter. overRect();
137
141
noJruby = nojruby. overRect();
138
142
}
139
143
140
144
141
145
void mouseClicked () {
142
- update(mouseX , mouseY );
146
+ update();
143
147
if (acceptOver) {
144
148
rectColor = selectedColor;
145
149
rectHighlight = selectedColor;
0 commit comments