diff --git a/Examples/enable_disable.json b/Examples/enable_disable.json new file mode 100644 index 0000000..5934a96 --- /dev/null +++ b/Examples/enable_disable.json @@ -0,0 +1 @@ +{"blocks":{"languageVersion":0,"blocks":[{"type":"showUI","id":"ja7^U7MK/WfceLbpiJW-","x":131,"y":145,"next":{"block":{"type":"appendTextlineInput","id":"gQU,s,%0oB0kbMM%/2|/","inputs":{"key":{"block":{"type":"text","id":"M3#u$Zrld~GVRF|g6vp,","fields":{"TEXT":"Input_1"}}},"label":{"block":{"type":"text","id":"UptaWf6)aYCiywpd,4+0","fields":{"TEXT":"Input 1"}}}},"next":{"block":{"type":"appendTextlineInput","id":"OHB3K3|OwC5N`q?2GvU9","inputs":{"key":{"block":{"type":"text","id":"j_E-=j61iVKC2|f^yAQF","fields":{"TEXT":"Input_2"}}},"label":{"block":{"type":"text","id":"NBrf5{:gKgzRdze1DPij","fields":{"TEXT":"Input 2"}}}},"next":{"block":{"type":"setInContext","id":"I6CZD[p+TlXP.gUo%YS5","inputs":{"key":{"block":{"type":"text","id":"$/:E0#`zcCE}2QA]rk(L","fields":{"TEXT":"Input_1"}}},"value":{"block":{"type":"text","id":"XKKg1Q-V5hvPOpV`LzYm","fields":{"TEXT":"(this element should normally be enabled)"}}}},"next":{"block":{"type":"setInContext","id":"nd)?CFnwbk:CieF?t;?s","inputs":{"key":{"block":{"type":"text","id":"IB]$+i-+A]n)i=55#KWc","fields":{"TEXT":"Input_2"}}},"value":{"block":{"type":"text","id":"qy,i,B)%djuYB;*cg6VO","fields":{"TEXT":"(this element should normally be disabled)"}}}},"next":{"block":{"type":"disable","id":"*_l4o{u(q%{~s;@!L-(c","inputs":{"key":{"block":{"type":"text","id":"^j_t?b/Ne3(go.8j-8,*","fields":{"TEXT":"Input_2"}}}},"next":{"block":{"type":"println","id":"SHblSbE);O}sbE;n+c]2","inputs":{"message":{"block":{"type":"text","id":"D:#@vb,I)dMSu#;$W5~F","fields":{"TEXT":"UI is still enabled in its entirety"}}}},"next":{"block":{"type":"println","id":"/kdMnm(OxgAk=fnQ~wN$","inputs":{"message":{"block":{"type":"LineFeed","id":"3F?{:@;XN5cRp;v@]e.T"}}},"next":{"block":{"type":"controls_for","id":"*wZg/4mn|gGk`u[vuSus","fields":{"VAR":{"id":"R2zBA0ARpMm0K4ku:E/d"}},"inputs":{"FROM":{"block":{"type":"math_number","id":"h_YRooZ#W]O9r!e_{9*9","fields":{"NUM":3}}},"TO":{"block":{"type":"math_number","id":"7gtIjf[rDv24CoO$fODk","fields":{"NUM":1}}},"BY":{"block":{"type":"math_number","id":"UP.hv$9.9yZbo{]Prf6E","fields":{"NUM":-1}}},"DO":{"block":{"type":"print","id":"6mm^a|zrg77S?Ngyn4j0","inputs":{"message":{"block":{"type":"variables_get","id":"VbX{2_P9FP[r{]C;#kKT","fields":{"VAR":{"id":"R2zBA0ARpMm0K4ku:E/d"}}}}},"next":{"block":{"type":"print","id":"*P3XZ%#9`9DeIBpqw+^G","inputs":{"message":{"block":{"type":"text","id":"Q6rN~lIw78G9NX(Q3H=~","fields":{"TEXT":"..."}}}},"next":{"block":{"type":"wait","id":".i!(|}Ra15UGK6H`n9%M","inputs":{"duration":{"block":{"type":"math_number","id":"T.k.EtkrgsXX6i26LH)+","fields":{"NUM":1}}}}}}}}}}},"next":{"block":{"type":"println","id":"(tR)HmB.II~A[.)KOP^,","inputs":{"message":{"block":{"type":"text","id":"@6q0pKR32Qq-*G+j8A^8","fields":{"TEXT":"0"}}}},"next":{"block":{"type":"println","id":"r*et;xy:+D~n|Q]3{3Eb","inputs":{"message":{"block":{"type":"LineFeed","id":"q5rXC{zw5x@;r4O-Dgxk"}}},"next":{"block":{"type":"disableUI","id":"T?MOY0OaNYUy#cE_y]?9","next":{"block":{"type":"println","id":"F5@*VHgb}q?D[.txw@]3","inputs":{"message":{"block":{"type":"text","id":"NXsVRNKE.:|~t;QtIaxJ","fields":{"TEXT":"UI is now disabled in its entirety"}}}},"next":{"block":{"type":"println","id":"5V?t*{Mr}r|^BRqzG`2_","inputs":{"message":{"block":{"type":"LineFeed","id":"jUHFsc+RY]i?OlmCa,uj"}}},"next":{"block":{"type":"wait","id":"3isHNll7kdsvP91!J5l5","inputs":{"duration":{"block":{"type":"math_number","id":"1$Zb+blj0UF6g#|^f#a|","fields":{"NUM":5}}}},"next":{"block":{"type":"controls_for","id":"}@O67)t7#yc2T;j5apsW","fields":{"VAR":{"id":"R2zBA0ARpMm0K4ku:E/d"}},"inputs":{"FROM":{"block":{"type":"math_number","id":".yO~Z1D{g_7%$6VE/fj}","fields":{"NUM":3}}},"TO":{"block":{"type":"math_number","id":"^(k7^!L!5Vi3H0V?)cUb","fields":{"NUM":1}}},"BY":{"block":{"type":"math_number","id":"dPZ%#Y]#L@tudo3C|-xr","fields":{"NUM":-1}}},"DO":{"block":{"type":"print","id":"ubm[I;c73Q(Cx8Sg,e}@","inputs":{"message":{"block":{"type":"variables_get","id":"V?Z5K}2VYtbn#4p^l?E^","fields":{"VAR":{"id":"R2zBA0ARpMm0K4ku:E/d"}}}}},"next":{"block":{"type":"print","id":"w${+))5f^,%9.[Bv%tb3","inputs":{"message":{"block":{"type":"text","id":"2pHtGdXX,+RiTK|+(:JK","fields":{"TEXT":"..."}}}},"next":{"block":{"type":"wait","id":"pC;iiRFWXnD1QgcrgO6#","inputs":{"duration":{"block":{"type":"math_number","id":",fyW}goN9Bi#.2OV3JRZ","fields":{"NUM":1}}}}}}}}}}},"next":{"block":{"type":"println","id":"jckIlv}^Z-VY__k(f-KW","inputs":{"message":{"block":{"type":"text","id":"0v8nHnLgi(4f32EktZ]E","fields":{"TEXT":"0"}}}},"next":{"block":{"type":"println","id":"zjqC`m8y,-G]*qtrO3LL","inputs":{"message":{"block":{"type":"LineFeed","id":"QI/.w|=}5kj~gkGH~.uS"}}},"next":{"block":{"type":"enableUI","id":";rFg1SWt,lTdf.f{hW0I","next":{"block":{"type":"println","id":"5bgQhG:~]Cq1h|%yDdx)","inputs":{"message":{"block":{"type":"text","id":"yQFc77yfso2Y=xAu!1/[","fields":{"TEXT":"UI is again enabled in its entirety"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}]},"variables":[{"name":"Step_1","id":"t/.0x}UV7]-YIDuB;a`z"},{"name":"Step_2","id":"E6=0(UX5s(VJ=5q:ia6_"},{"name":"Step_3","id":"e9Yh!aej}^;:Q3`[9k|p"},{"name":"Step_4","id":"a9Z73T*8?GJqp%rXTwP]"},{"name":"Step_5","id":"=opX8Z4t`VhH,,s!q}e$"},{"name":"i","id":"R2zBA0ARpMm0K4ku:E/d"}]} \ No newline at end of file