X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=bin%2Fruncmd.scala;h=52658473085bd3eafadfd39b2186c9de56f85b41;hp=f4668874a455890a89105a628153573e28b19e85;hb=7fac438c77bb0e3749bababc0cc89a1366893444;hpb=762ab38881c8870c9a61ca6857a28159f9fef9fc diff --git a/bin/runcmd.scala b/bin/runcmd.scala index f466887..5265847 100755 --- a/bin/runcmd.scala +++ b/bin/runcmd.scala @@ -63,10 +63,33 @@ ticks @#$#@#$#@ @#$#@#$#@ +default +true +0 +Polygon -7500403 true true 150 5 40 250 150 205 260 250 + +sheep +false +15 +Circle -1 true true 203 65 88 +Circle -1 true true 70 65 162 +Circle -1 true true 150 105 120 +Polygon -7500403 true false 218 120 240 165 255 165 278 120 +Circle -7500403 true false 214 72 67 +Rectangle -1 true true 164 223 179 298 +Polygon -1 true true 45 285 30 285 30 240 15 195 45 210 +Circle -1 true true 3 83 150 +Rectangle -1 true true 65 221 80 296 +Polygon -1 true true 195 285 210 285 210 240 240 210 195 210 +Polygon -7500403 true false 276 85 285 105 302 99 294 83 +Polygon -7500403 true false 219 85 210 105 193 99 201 83 + @#$#@#$#@ NetLogo 5.2.0""") +} else if (input.length > 3 && input(3).length > 0) { + workspace.openFromSource(url2String("file:" + input(3))) } else { - workspace.openFromSource(url2String("file:resources/empty.nlogo")) + workspace.openFromSource(url2String("file:resources/clnl/empty.nlogo")) } workspace.mainRNG.setSeed(15)