Skip to content

Commit 76949fd

Browse files
committed
WIP: Get rid of manual previews
1 parent 82a146d commit 76949fd

95 files changed

Lines changed: 265 additions & 95 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3D/Sample Models/Maze 3D.nlogox3d

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,5 +936,10 @@ To inquire about commercial licenses for either NetLogo or specific models from
936936
</shape>
937937
</linkShapes>
938938
<previewCommands>setup
939-
move-forward</previewCommands>
939+
turn-right
940+
repeat 3 [ move-forward ]
941+
turn-left
942+
repeat 7 [ move-forward ]
943+
turn-right
944+
repeat 12 [ move-forward ]</previewCommands>
940945
</model>

Code Examples/3D Shapes Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,5 +769,5 @@ This code example shows the 3D shapes available in NetLogo.
769769
</indicator>
770770
</shape>
771771
</linkShapes>
772-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
772+
<previewCommands manual="true">setup demo</previewCommands>
773773
</model>

Code Examples/Case Conversion Example.nlogox

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,5 +769,7 @@ NetLogo doesn't have primitives for converting upper to lower case, or vice vers
769769
</indicator>
770770
</shape>
771771
</linkShapes>
772-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
772+
<previewCommands manual="true">create-turtles 2 [ setxy random-pxcor random-pycor ]
773+
ask turtle 0 [ set label upper-case-string "i aM A teSt" ]
774+
ask turtle 1 [ set label lower-case-string "I AM also A TEST" ]</previewCommands>
773775
</model>

Code Examples/Extensions Examples/gogo/GoGoMonitor.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,5 +915,5 @@ This model was created by Paulo Blikstein at Stanford's [Transformative Learning
915915
</indicator>
916916
</shape>
917917
</linkShapes>
918-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
918+
<previewCommands manual="true"></previewCommands>
919919
</model>

Code Examples/Extensions Examples/gogo/GoGoMonitorSimple.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,5 +825,5 @@ This model was created by Paulo Blikstein at Stanford's [Transformative Learning
825825
</indicator>
826826
</shape>
827827
</linkShapes>
828-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
828+
<previewCommands manual="true"></previewCommands>
829829
</model>

Code Examples/Extensions Examples/ls/Model Interactions Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,5 +936,5 @@ See the Model Visualizer and Plotter Example and the Parent Model Example.
936936
</indicator>
937937
</shape>
938938
</linkShapes>
939-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
939+
<previewCommands manual="true"></previewCommands>
940940
</model>

Code Examples/Extensions Examples/ls/Model Visualizer and Plotter Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,5 +945,5 @@ See the Parent Model Example and the Model Interactions Example.
945945
</indicator>
946946
</shape>
947947
</linkShapes>
948-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
948+
<previewCommands manual="true"></previewCommands>
949949
</model>

Code Examples/Extensions Examples/ls/Parent Model Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,5 +909,5 @@ See the Model Visualizer and Plotter Example and the Model Interactions Example.
909909
</indicator>
910910
</shape>
911911
</linkShapes>
912-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
912+
<previewCommands manual="true"></previewCommands>
913913
</model>

Code Examples/Extensions Examples/matrix/Matrix Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,5 +902,5 @@ This model demonstrates basic usage of the matrix extension.
902902
</indicator>
903903
</shape>
904904
</linkShapes>
905-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
905+
<previewCommands manual="true"></previewCommands>
906906
</model>

Code Examples/Extensions Examples/profiler/Profiler Example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,5 +752,5 @@ See the Interface tab for more information. See also the Profiler section of th
752752
</indicator>
753753
</shape>
754754
</linkShapes>
755-
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
755+
<previewCommands manual="true"></previewCommands>
756756
</model>

0 commit comments

Comments
 (0)