Skip to content

Commit 2902665

Browse files
authored
Merge pull request #448 from NetLogo/red-queen-ui-fixed
rearange the ui of the red queen
2 parents 228f194 + f934e18 commit 2902665

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

Curricular Models/BEAGLE Evolution/Red Queen.nlogox

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,21 @@ end
115115
; Copyright 2007 Uri Wilensky.
116116
; See Info tab for full copyright and license.]]></code>
117117
<widgets>
118-
<view x="240" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-17" height="424" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="424" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
119-
<button x="117" y="120" height="52" disableUntilTicks="true" forever="true" kind="Observer" width="74" display="Go">go</button>
120-
<button x="35" y="120" height="51" disableUntilTicks="false" forever="false" kind="Observer" width="77" display="setup">setup</button>
121-
<slider x="4" step="1" y="222" max="150" width="204" display="initial-number-frogs" height="50" min="1" direction="Horizontal" default="150.0" variable="initial-number-frogs"></slider>
122-
<slider x="4" step="1" y="277" max="150" width="203" display="initial-number-snakes" height="50" min="1" direction="Horizontal" default="150.0" variable="initial-number-snakes"></slider>
123-
<button x="65" y="177" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="92" display="step once">go</button>
124-
<monitor x="3" precision="3" y="562" height="60" fontSize="11" width="100" display="Snakes">count snakes</monitor>
125-
<monitor x="3" precision="3" y="497" height="60" fontSize="11" width="100" display="Frogs">count frogs</monitor>
126-
<monitor x="108" precision="3" y="497" height="60" fontSize="11" width="125" display="Average Poison">average-poison</monitor>
127-
<monitor x="108" precision="3" y="562" height="60" fontSize="11" width="126" display="Average resistance">average-resistance
118+
<view x="244" wrappingAllowedX="true" y="9" frameRate="30.0" minPycor="-17" height="424" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="424" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
119+
<button x="40" y="13" height="51" disableUntilTicks="false" forever="false" kind="Observer" width="77" display="setup">setup</button>
120+
<slider x="9" step="1" y="170" max="150" width="203" display="initial-number-snakes" height="50" min="1" direction="Horizontal" default="150.0" variable="initial-number-snakes"></slider>
121+
<button x="70" y="70" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="92" display="step once">go</button>
122+
<slider x="9" step="1" y="225" max="50" width="203" display="initial-poison-mean" height="50" min="0" direction="Horizontal" default="25.0" variable="initial-poison-mean"></slider>
123+
<slider x="9" step="1" y="280" max="50" width="203" display="initial-resistance-mean" height="50" min="0" direction="Horizontal" default="25.0" variable="initial-resistance-mean"></slider>
124+
<slider x="9" step="1" y="335" max="500" width="203" display="max-population" height="50" min="0" direction="Horizontal" default="500.0" variable="max-population"></slider>
125+
<slider x="9" step="1" y="115" max="150" width="204" display="initial-number-frogs" height="50" min="1" direction="Horizontal" default="150.0" variable="initial-number-frogs"></slider>
126+
<monitor x="113" precision="3" y="455" height="60" fontSize="11" width="126" display="Average resistance">average-resistance
128127
</monitor>
129-
<plot x="2" autoPlotX="true" yMax="160.0" autoPlotY="true" y="627" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="120.0" width="230" display="populations">
128+
<monitor x="113" precision="3" y="390" height="60" fontSize="11" width="125" display="Average Poison">average-poison</monitor>
129+
<monitor x="8" precision="3" y="390" height="60" fontSize="11" width="100" display="Frogs">count frogs</monitor>
130+
<monitor x="8" precision="3" y="455" height="60" fontSize="11" width="100" display="Snakes">count snakes</monitor>
131+
<button x="122" y="13" height="52" disableUntilTicks="true" forever="true" kind="Observer" width="74" display="Go">go</button>
132+
<plot x="243" autoPlotX="true" yMax="160.0" autoPlotY="true" y="440" xMin="0.0" height="207" legend="true" xMax="10.0" yMin="120.0" width="230" display="populations">
130133
<setup></setup>
131134
<update></update>
132135
<pen interval="1.0" mode="0" display="frogs" color="-2674135" legend="true">
@@ -138,10 +141,7 @@ end
138141
<update>plot count snakes</update>
139142
</pen>
140143
</plot>
141-
<slider x="4" step="1" y="332" max="50" width="203" display="initial-poison-mean" height="50" min="0" direction="Horizontal" default="25.0" variable="initial-poison-mean"></slider>
142-
<slider x="4" step="1" y="387" max="50" width="203" display="initial-resistance-mean" height="50" min="0" direction="Horizontal" default="25.0" variable="initial-resistance-mean"></slider>
143-
<slider x="4" step="1" y="442" max="500" width="203" display="max-population" height="50" min="0" direction="Horizontal" default="500.0" variable="max-population"></slider>
144-
<plot x="237" autoPlotX="true" yMax="10.0" autoPlotY="true" y="627" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="10.0" width="230" display="traits">
144+
<plot x="478" autoPlotX="true" yMax="10.0" autoPlotY="true" y="440" xMin="0.0" height="207" legend="true" xMax="10.0" yMin="10.0" width="230" display="traits">
145145
<setup></setup>
146146
<update></update>
147147
<pen interval="1.0" mode="0" display="poison" color="-2674135" legend="true">
@@ -153,8 +153,6 @@ end
153153
<update>plot average-resistance</update>
154154
</pen>
155155
</plot>
156-
<note x="482" y="640" backgroundDark="0" fontSize="11" width="150" markdown="false" height="33" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Red = Frogs
157-
Blue = Snakes</note>
158156
</widgets>
159157
<info><![CDATA[## WHAT IS IT?
160158

0 commit comments

Comments
 (0)