Script: Texture Asset

Texture Asset picture
Type
Blockly logo indicatorblockly
Author
matas
Date Created
Jan 30, 2024, 10:41:38 AM
Last Edit Date
Jan 30, 2024, 1:12:46 PM

Project Information

This project contains demo scripts for Blockly based editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script Code

<xml xmlns="https://developers.google.com/blockly/xml">
 <block type="bitbybit.draw.drawGridMeshNoReturn" id="lDICi^VGh~NwNzo5jG)h" x="24" y="-1455">
  <value name="Width">
   <block type="math_number" id="}I=k_?GAsFVlu7Q2CFI}">
    <field name="NUM">400</field>
   </block>
  </value>
  <value name="Height">
   <block type="math_number" id="K)2%0O,HF_b#DaorC;sI">
    <field name="NUM">400</field>
   </block>
  </value>
  <value name="Subdivisions">
   <block type="math_number" id="}QMA.2k{Q%|;cgF6n4;">
    <field name="NUM">10</field>
   </block>
  </value>
  <value name="MajorUnitFrequency">
   <block type="math_number" id="InuLK:6VnHZDm7kXJZ7?">
    <field name="NUM">10</field>
   </block>
  </value>
  <value name="MinorUnitVisibility">
   <block type="math_number" id="A1DI6uQ2hsfgD21:Nul]">
    <field name="NUM">0.45</field>
   </block>
  </value>
  <value name="GridRatio">
   <block type="math_number" id="s}=w]RFx5^;roEtkeLM4">
    <field name="NUM">0.5</field>
   </block>
  </value>
  <value name="Opacity">
   <block type="math_number" id="7VABo|Jk5lDD7!(k0B:T">
    <field name="NUM">0.5</field>
   </block>
  </value>
  <value name="BackFaceCulling">
   <block type="logic_boolean" id="8$%s9!K4B@xd2wz%Q9xj">
    <field name="BOOL">FALSE</field>
   </block>
  </value>
  <value name="MainColor">
   <block type="colour_picker" id="7]ODl?MQ:bR7daF]RD?Y">
    <field name="COLOUR">#ffffff</field>
   </block>
  </value>
  <next>
   <block type="bitbybit.draw.drawAnyAsyncNoReturn" id="UO^K1-FNciNjT{DsaF2S">
    <value name="Entity">
     <block type="bitbybit.advanced.text3d.create" id="NEsOJ~cGr]JZu/wLHk(w">
      <value name="Text">
       <block type="text" id="?4t}~C[bkj38YFQ.XBh">
        <field name="TEXT">Hello World, matas!</field>
       </block>
      </value>
      <value name="FontType">
       <block type="bitbybit.advanced.text3d.fontsEnum" id="kdi]-UT7*y](~D3@xwv">
        <field name="bitbybit.advanced.text3d.fontsEnum">'Roboto'</field>
       </block>
      </value>
      <value name="FontVariant">
       <block type="bitbybit.advanced.text3d.fontVariantsEnum" id=";:#Pa7+17#2)ekxYmiXg">
        <field name="bitbybit.advanced.text3d.fontVariantsEnum">'BoldItalic'</field>
       </block>
      </value>
      <value name="FontSize">
       <block type="math_number" id="v_Y_FVX~~=gO*u8,U)Yy">
        <field name="NUM">1.5</field>
       </block>
      </value>
      <value name="Height">
       <block type="math_number" id="u/jN;Q1}#Hirc.@_:jm">
        <field name="NUM">0.2</field>
       </block>
      </value>
      <value name="Rotation">
       <block type="math_number" id=";h$yi%$MlF6}1d_/=}">
        <field name="NUM">-90</field>
       </block>
      </value>
      <value name="Origin">
       <block type="bitbybit.point.pointXYZ" id="Ybq5TX9~7qVyrp2TPP{T">
        <value name="X">
         <block type="math_number" id="Aw_y/;iYU_ng$l$6HKk9">
          <field name="NUM">0</field>
         </block>
        </value>
        <value name="Y">
         <block type="math_number" id="m)f+3L-S-GPHS(1TUf1N">
          <field name="NUM">0</field>
         </block>
        </value>
        <value name="Z">
         <block type="math_number" id="hKtj.yvuexRJ$s@s3dE;">
          <field name="NUM">0</field>
         </block>
        </value>
       </block>
      </value>
      <value name="Direction">
       <block type="bitbybit.point.pointXYZ" id="oE|;?,27:3~}xTf;7#|)">
        <value name="X">
         <block type="math_number" id="rt($Rk0#Hb-~d0C6d?5+">
          <field name="NUM">0</field>
         </block>
        </value>
        <value name="Y">
         <block type="math_number" id="l;B*tj~0^fLzmz46XXkg">
          <field name="NUM">0</field>
         </block>
        </value>
        <value name="Z">
         <block type="math_number" id="Y%s*SUmVK}34L}dPUL4J">
          <field name="NUM">1</field>
         </block>
        </value>
       </block>
      </value>
      <value name="OriginAlignment">
       <block type="bitbybit.advanced.text3d.recAlignmentEnum" id="cBGt}zM8^T0b8.%unx3~">
        <field name="bitbybit.advanced.text3d.recAlignmentEnum">'centerBottom'</field>
       </block>
      </value>
     </block>
    </value>
   </block>
  </next>
 </block>
</xml>