added lochkartengenerator

This commit is contained in:
Victor Giers
2019-06-08 18:03:23 +02:00
parent 5ba73e402a
commit fa316ec443
12 changed files with 1111 additions and 150 deletions

View File

@@ -1,5 +1,5 @@
<xml xmlns="http://www.w3.org/1999/xhtml">
<tab name="Init" type="InitTab" active="false" scrollx="201.48344373616317" scrolly="246.25754234419952" scale="0.7462349768006044">
<tab name="Init" type="InitTab" active="false" scrollx="201.4834437361635" scrolly="246.25754234419952" scale="0.7462349768006044">
<variables>
<variable type="" id=";D?T^;K0%2HHlr__^(^G">cinitx</variable>
<variable type="" id="A70x?DA^cBEdQM}CSBbn">cinity</variable>
@@ -40,7 +40,7 @@
</next>
</block>
</tab>
<tab name="Main" type="MainTab" active="true" scrollx="274.3921508789062" scrolly="114.03294754028332" scale="0.4800918543492923">
<tab name="Main" type="MainTab" active="true" scrollx="-113.62881469726551" scrolly="91.53881072998047" scale="0.6841615272489737">
<variables>
<variable type="" id="JjHAX,fgz)6.fPl8`pav">distZ</variable>
<variable type="" id="OZm(1S+UK~jxq[i=;gvy">r</variable>
@@ -52,12 +52,14 @@
<variable type="" id="y`}^nMMYi2(=a@$1Rji}">inboundStepper</variable>
<variable type="" id="R^!o,`,R1kG4gy[5$Umr">r_</variable>
<variable type="" id="2Zu0]gb$+5H;Luc?anOJ">maxDist</variable>
<variable type="" id="~%UHnBD.$/u9=5~G/:mO">bitState</variable>
<variable type="" id="~%UHnBD.$/u9=5~G/:mO">bitstate</variable>
<variable type="" id=";2#~%D)|8Bx;*UKl_i;X">recordqubitstate</variable>
<variable type="" id="{uv)e`R|4v.*a0z+kFHL">recordbitstate</variable>
<variable type="" id="R@[s;p*6^1oQOeV.nM5w">g_</variable>
<variable type="" id="GKERIN}`~rk0$MWnY3aS">stepY</variable>
<variable type="" id="S`ib|8a9}oYR22qe`UUI">hue</variable>
<variable type="" id="R@[s;p*6^1oQOeV.nM5w">g_</variable>
<variable type="" id="YfcA/U/M4Db,!/u8lx*r">sat</variable>
<variable type="" id="W7{,OY@Y_QTKJ!C2%fx(">b_</variable>
<variable type="" id="YfcA/U/M4Db,!/u8lx*r">sat</variable>
<variable type="" id="rAlwiT?%pA#CG+i+x-1G">value</variable>
</variables>
<block type="variables_set" id="`dwC`Z,Jf0#0u/hYw%ew" x="-210" y="-690">
@@ -185,7 +187,7 @@
</value>
<next>
<block type="variables_set" id="(bid[#n`8W,l[gWAL*^B">
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitState</field>
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitstate</field>
<value name="VALUE">
<block type="math_number" id="K6x_`7.zPae3n_QLR]i-">
<field name="NUM">0</field>
@@ -251,6 +253,19 @@
</block>
</next>
</block>
<block type="bindHTMLObject" id="9!xyRzrc}9d.;y%8d[?e" disabled="true" x="770" y="-350">
<field name="PARENT">TRUE</field>
<value name="ID">
<block type="text" id="yVuZW6Vin0:%$-D|ncbl">
<field name="TEXT">lochkarte</field>
</block>
</value>
<value name="OBJECTINPUT">
<block type="objectList" id="vM[NJTc,Sj8{q(1pGMP[">
<field name="FIELDNAME">div-left</field>
</block>
</value>
</block>
<block type="whenDraggedOver" id="x7;j`9Tr6$fIW]tXfLwm" x="-230" y="-290">
<mutation do_start="true" do_drop="true"></mutation>
<value name="VALUE">
@@ -771,7 +786,46 @@
</block>
</statement>
</block>
<block type="whenClicked" id="VqdFSAMNy2s9dV;DeF8R" x="890" y="30">
<block type="externalCall" id="W?ejqfSp?_Y4W^E{QY|/" x="1110" y="-170">
<field name="NAME">rs</field>
<statement name="STACK">
<block type="console.log" id="pYKj(442ZYF3FUCZ^J$b">
<value name="VALUE">
<shadow type="text" id="2WYz++OSo6^Qz)|Df]nV">
<field name="TEXT">I'm here!!!</field>
</shadow>
</value>
<next>
<block type="callJSFunction" id="Tc1Ya}N`$+9P=mFTO]0Q">
<mutation name="setDivWidth">
<arg name="x"></arg>
</mutation>
<field name="NAME">setDivWidth</field>
<value name="ARG0">
<block type="text_join" id="i)!sJ~g{`,qXm/:zC|pD">
<mutation items="1"></mutation>
<value name="ADD0">
<block type="distanceBetweenObjects" id="oxIsA5jogB+Bhx0NVHr@">
<value name="OBJECT1">
<block type="objectList" id="#nRZj4c$e?1yzojXxxUp">
<field name="FIELDNAME">div-left</field>
</block>
</value>
<value name="OBJECT2">
<block type="objectList" id="T0DS,Gu;mIM@*-=fzJ8,">
<field name="FIELDNAME">div-right</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
<block type="whenClicked" id="VqdFSAMNy2s9dV;DeF8R" x="890" y="10">
<mutation enableifmissed="false"></mutation>
<value name="VALUE">
<block type="objectList" id="PH*#jp%0:0P`YjJL[ku%">
@@ -814,7 +868,7 @@
</value>
<next>
<block type="variables_set" id="MTnVQr]WeOc8_7W9Qs{a">
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitState</field>
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitstate</field>
<value name="VALUE">
<block type="math_number" id="rM8Wc)y]{c$^Mf+hN9^9">
<field name="NUM">0</field>
@@ -838,7 +892,7 @@
</value>
<next>
<block type="variables_set" id="Z?-)K)YG50^+:[x}12o$">
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitState</field>
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitstate</field>
<value name="VALUE">
<block type="math_number" id="Txg:@f6`-QuMueETEp:,">
<field name="NUM">1</field>
@@ -856,6 +910,255 @@
</block>
</statement>
</block>
<block type="whenClicked" id="c4FYX]Inh`#-sjA`(f4V" x="1810" y="-10">
<mutation enableifmissed="false"></mutation>
<value name="VALUE">
<block type="objectList" id="bsXie5wj6SJ{1UO[@Ti0">
<field name="FIELDNAME">recordqubit</field>
</block>
</value>
<statement name="DO">
<block type="controls_if" id=",og{XXko#pgOA:c8ixfN">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="T!G@rc4D7Xd|D!gfHi4B">
<field name="OP">EQ</field>
<value name="A">
<block type="getObjectMaterial" id="kc6@F_q;=hJZg8ceH=E^">
<value name="VALUE">
<block type="objectList" id="@k)wrAJw7F1LRgbh15:9">
<field name="FIELDNAME">recordqubit</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="materialList" id="j=$Ys;Wx^cFj3pxYXaY`">
<field name="FIELDNAME">on</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="assignMaterial" id="q8$6Clmfwb$tqqvQ$9+@">
<value name="VALUE2">
<block type="materialList" id="y)@qk)8;U7$SeHu@$jc(">
<field name="FIELDNAME">black</field>
</block>
</value>
<value name="VALUE1">
<block type="objectList" id="FFInsU#^P6NkhiFhQlMZ">
<field name="FIELDNAME">recordqubit</field>
</block>
</value>
<next>
<block type="variables_set" id="1$a^$EEjon7(%{3,+$%5">
<field name="VAR" id=";2#~%D)|8Bx;*UKl_i;X" variabletype="">recordqubitstate</field>
<value name="VALUE">
<block type="math_number" id="QFbQsj=9dk(jliQ.$r#}">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="assignMaterial" id=")V+R26uKzzAm97Ldnq^8">
<value name="VALUE2">
<block type="materialList" id="$yUv/w@Rnc.@:(w*0NnH">
<field name="FIELDNAME">on</field>
</block>
</value>
<value name="VALUE1">
<block type="objectList" id="+i0Dzb5=|xeL2eD-Gr@n">
<field name="FIELDNAME">recordqubit</field>
</block>
</value>
<next>
<block type="variables_set" id="CF2dEw8EkumZ03}D6{LW">
<field name="VAR" id=";2#~%D)|8Bx;*UKl_i;X" variabletype="">recordqubitstate</field>
<value name="VALUE">
<block type="math_number" id=")W[;2qF`hF?$^R=PGVJR">
<field name="NUM">1</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
<block type="whenClicked" id=",K9aNvARk)E/hrdDD[z4" x="1270" y="230">
<mutation enableifmissed="false"></mutation>
<value name="VALUE">
<block type="objectList" id="^TCV7NVje3z`,Xr{,Rzx">
<field name="FIELDNAME">recordbit</field>
</block>
</value>
<statement name="DO">
<block type="controls_if" id="aRE)~4We]n~W-y6dgVQ=">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="qY+QrD=Qiw)g,+V2@Ov0">
<field name="OP">EQ</field>
<value name="A">
<block type="getObjectMaterial" id="5z2efN$X$|$gbouU)-cY">
<value name="VALUE">
<block type="objectList" id="a#p`e;PVG(#R6_|I:sq-">
<field name="FIELDNAME">recordbit</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="materialList" id="|M`6u5)t7Tg./g;0WtIU">
<field name="FIELDNAME">on</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="assignMaterial" id="Sjsdz!*{UX?$:F;~lXr(">
<value name="VALUE2">
<block type="materialList" id="CvMdE|,_7^iG(=06=fe/">
<field name="FIELDNAME">black</field>
</block>
</value>
<value name="VALUE1">
<block type="objectList" id="qG[PS^1po:p#~clI_deM">
<field name="FIELDNAME">recordbit</field>
</block>
</value>
<next>
<block type="variables_set" id="h7L[s9:5$UnsmAqJjYT%">
<field name="VAR" id="{uv)e`R|4v.*a0z+kFHL" variabletype="">recordbitstate</field>
<value name="VALUE">
<block type="math_number" id="bDjGDv](?Mn/FL];@wnW">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="assignMaterial" id="T*~FmcuT#4j=qrl4:MrA">
<value name="VALUE2">
<block type="materialList" id="2s%hE%phs1|eavVkt0GS">
<field name="FIELDNAME">on</field>
</block>
</value>
<value name="VALUE1">
<block type="objectList" id="Ki._fvz1-#]3}JnExZpc">
<field name="FIELDNAME">recordbit</field>
</block>
</value>
<next>
<block type="variables_set" id="42}zXIBwbRR4PI:tE:.g">
<field name="VAR" id="{uv)e`R|4v.*a0z+kFHL" variabletype="">recordbitstate</field>
<value name="VALUE">
<block type="math_number" id="Zp-2?zDx%rH]$ATs}fV+">
<field name="NUM">1</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
<block type="setInterval" id="q2(c$](o,X?7XyLKeLrT" x="290" y="390">
<value name="VALUE">
<shadow type="math_number" id="E%*$s`^w?p#ARgT)=2?[">
<field name="NUM">1</field>
</shadow>
</value>
<statement name="DO">
<block type="controls_if" id="[+k^]8d?$;.,J4[ha65Y">
<value name="IF0">
<block type="logic_compare" id="Z09VMcd:|_xe1pGk1iEr">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="g)^y*j$tF;qhjL]=zUbv">
<field name="VAR" id="{uv)e`R|4v.*a0z+kFHL" variabletype="">recordbitstate</field>
</block>
</value>
<value name="B">
<block type="math_number" id="9U^sV_xYH:A1Q-er$f96">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="callJSFunction" id="^Beo2gOEMk(PU186#-iW">
<mutation name="addBit">
<arg name="bitstate"></arg>
</mutation>
<field name="NAME">addBit</field>
<value name="ARG0">
<block type="variables_get" id="y;#4JeBh_uNb++@iG8.l">
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitstate</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id=";AG7k[.VfCwG@|+ht/n~">
<value name="IF0">
<block type="logic_compare" id="v*g#m0$E!],_al(r3v[t">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="HK_tYmL~uW^I:cnlDOvP">
<field name="VAR" id=";2#~%D)|8Bx;*UKl_i;X" variabletype="">recordqubitstate</field>
</block>
</value>
<value name="B">
<block type="math_number" id="vrUZ5iHh%kwqQ}8@1qmm">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="callJSFunction" id="_3e_NUTvl|JV~Z6y-!PH">
<mutation name="addQubit">
<arg name="qubitstateR"></arg>
<arg name="qubitstateG"></arg>
<arg name="qubitstateB"></arg>
</mutation>
<field name="NAME">addQubit</field>
<value name="ARG0">
<block type="variables_get" id="x,[;`5{QV6%lyY:#H-7C">
<field name="VAR" id="R^!o,`,R1kG4gy[5$Umr" variabletype="">r_</field>
</block>
</value>
<value name="ARG1">
<block type="variables_get" id="jFM_erly,h$m)[]P@?Qh">
<field name="VAR" id="R@[s;p*6^1oQOeV.nM5w" variabletype="">g_</field>
</block>
</value>
<value name="ARG2">
<block type="variables_get" id="+5(,zR,4feF;3Y2P^~iX">
<field name="VAR" id="W7{,OY@Y_QTKJ!C2%fx(" variabletype="">b_</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
<block type="procedures_callnoreturn" id="ar)*._jF`jU0FIa0,lnB" x="1910" y="370">
<mutation name="printStates"></mutation>
</block>
<block type="procedures_callnoreturn" id="P3M5!lU.j3{HXbl3:BM7" x="2030" y="430">
<mutation name="printStates"></mutation>
</block>
<block type="externalCall" id="Vpc9v!mZHQ0;V(+:ON#u" x="750" y="510">
<mutation>
<arg name="r" varid="OZm(1S+UK~jxq[i=;gvy"></arg>
@@ -1443,7 +1746,7 @@
</value>
<value name="ADD1">
<block type="variables_get" id="!F$.sJg@KwTKrQ@Q3)~l">
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitState</field>
<field name="VAR" id="~%UHnBD.$/u9=5~G/:mO" variabletype="">bitstate</field>
</block>
</value>
<value name="ADD2">
@@ -1514,5 +1817,5 @@
</statement>
</block>
</tab>
<editorsettings width="1018" height="511"></editorsettings>
<editorsettings width="1704" height="684"></editorsettings>
</xml>