代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="keywords" content="Blockly,blockly,BOX3 Blockly,神奇代码岛,代码岛,图形化">
<meta name="description" content="基于Blockly的第三方Box3图形化编辑器,帮助萌新学习API与JS">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=0.55, user-scalable=no">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>BOX3 Blockly</title>
<!--<link rel="stylesheet" href="styles/material.indigo-pink.min.css">-->
<link rel="stylesheet" href="styles/index.css">
</head>
<body mode="maker">
<header class="header" id="header">
<div
style="float:left;height:50px;width:50px;background:url('images/logo.png');background-size:cover;position:absolute;top:0px;bottom:0px;margin:auto;margin-left:15px;">
</div>
<h1 class="h1">BOX3 Blockly</h1>
<div class="contentes">
<center>
<p class="p">文件</p>
</center>
<div style="border-radius:6px;box-shadow:3px 3px 10px grey;margin-top:8px;width:125px;">
<div class="select" style="border-top-left-radius:6px;border-top-right-radius:6px;width:125px;"
onclick="save();alert('保存成功!')">
<p style="font-size:13pt;line-height:2.4em;">保存</p>
</div>
<input type="file" id="files" style="display:none" onchange="openFile()" accept=".blk,.xml" />
<div class="select" style="width:125px;" onclick="document.getElementById('files').click()">
<p style="font-size:13pt;line-height:2.4em;">打开本地</p>
</div>
<div class="select" style="width:125px;"
onclick="downLoad(decodeURIComponent(xmlToDom()),'BLKProject.blk')">
<p style="font-size:13pt;line-height:2.4em;">下载blk</p>
</div>
<div class="select" style="border-bottom-left-radius:6px;border-bottom-right-radius:6px;width:125px;"
onclick="downLoad(document.getElementById('code').innerText,'BOX3 Blockly.js')">
<p style="font-size:13pt;line-height:2.4em;">下载js</p>
</div>
</div>
</div>
<div class="contentes">
<center>
<p class="p">关于</p>
</center>
<div style="border-radius:6px;box-shadow:3px 3px 10px grey;margin-top:8px;width:140px;">
<div class="select" style="border-top-left-radius:6px;border-top-right-radius:6px;width:140px"
onclick="about()">
<p style="font-size:13pt;line-height:2.4em;">关于...</p>
</div>
<div class="select" style="width:140px;" onclick="window.open('https://box3.codemao.cn')">
<p style="font-size:13pt;line-height:2.4em;">BOX3官网</p>
</div>
<div class="select" style="border-bottom-left-radius:6px;border-bottom-right-radius:6px;width:140px;"
onclick="window.open('https://docs.box3.codemao.cn')">
<p style="font-size:13pt;line-height:2.4em;">开发API</p>
</div>
</div>
</div>
<div class="contentes">
<center>
<p class="p">设置</p>
</center>
<div style="border-radius:6px;box-shadow:3px 3px 10px grey;margin-top:8px;width:130px;">
<div class="select" style="border-radius:6px;width:130px" onclick="setTheme()">
<p style="font-size:13pt;line-height:2.4em;">主题色</p>
</div>
</div>
</div>
<div name="login">
<div class="loginButton" id="loginButton">登录BOX3账号</div>
<div id="loginBox">
<div id="userName"></div>
<img id="userImg">
<div id="relog" class="select">退出登录</div>
</div>
</div>
</header>
<div class="loadBg" id="loadBg">
<center>
<h1 class="title">BOX3 Blockly</h1>
<img src="images/logo.png" style="position:fixed;border-radius:50%;margin-left:-48px;margin-top:10px;"
height="96px;"></img>
<div class="load"></div><br />
<p id="loadContent">加载中...</p>
</center>
</div>
<dialog id="login-dialog" class="wc-dialog">
<div class="wc-dialog-title">
登录<span class="times" onclick="document.getElementById('login-dialog').close()">×</span>
</div>
<div class="wc-dialog-content">
<div class="login-select login-selecting" style="float:left;margin-left:40px;" id="box-login-select">BOX3登录</div>
<div class="login-select login-unselecting" style="float:right;margin-right:40px;" id="codemao-login-select">编程猫</div>
<br/>
<div id="box-login">
<br/>
<span style="font-size:13pt;">账号:</span><input class="input" style="width:250px" placeholder="手机号/邮箱/代码岛BoxId" id="zh"/>
<div id="zh-error" style="color:red;font-size:12px;"></div>
<br/>
<span style="font-size:13pt;">密码:</span><input class="input" style="width:250px" placeholder="密码" id="ps" type="password"/>
<div id="pas-error" style="color:red;font-size:12px;"></div>
<br/><br/>
<button class ="wc-button2" style="width:100%;border-radius:50px;border:1px rgb(0,135,255) solid;padding:10px;background-color:white;cursor:pointer" onclick="window.open('https://box3.codemao.cn/me/')">注册BOX3账号</button>
</div>
<div id="codemao-login">
<br/>
<span style="font-size:13pt;">账号:</span><input class="input" style="width:250px" placeholder="手机号/用户名/邮箱" id="codemao-zh"/>
<div id="codemao-zh-error" style="color:red;font-size:12px;"></div>
<br/>
<span style="font-size:13pt;">密码:</span><input class="input" style="width:250px" placeholder="密码" id="codemao-ps" type="password"/>
<div id="codemao-pas-error" style="color:red;font-size:12px;"></div>
<br/><br/>
<button class ="wc-button2" style="width:100%;border-radius:50px;border:1px rgb(0,135,255) solid;padding:10px;background-color:white;cursor:pointer" onclick="window.open('https://shequ.codemao.cn')">注册编程猫账号</button>
</div>
</div>
<button class="wc-button wc-button1" id="login-">登录</button>
<button class="wc-button wc-button2" onclick="document.getElementById('login-dialog').close()">取消</button>
</dialog>
<div id="main">
<div class="blockly-editor">
<div id="blocklyDiv"
style="position:relative; width: 75%; height:100%;"></div>
<div>
<div id="code"></div>
<div id="copy">
<center style="margin-top:18px;">复制</center>
</div>
</div>
</div>
<xml id="toolbox" style="display:none;">
<category name="事件" colour="#0074FF">
<block type="whenStart"></block>
<block type="onPlayerJoin">
<value name="value">
<shadow type="joinEntity">
</shadow>
</value>
</block>
<block type="joinEntity"></block>
<block type="onPlayerLeave">
<value name="value">
<shadow type="leaveEntity">
</shadow>
</value>
</block>
<block type="leaveEntity"></block>
<block type="onInteract">
<value name="value">
<shadow type="interactEntity">
</shadow>
</value>
<value name="value1">
<shadow type="targetEntity">
</shadow>
</value>
</block>
<block type="interactEntity"></block>
<block type="targetEntity"></block>
<block type="onEntityContact">
<value name="value">
<shadow type="contactEntity">
</shadow>
</value>
<value name="value1">
<shadow type="other">
</shadow>
</value>
<value name="value2">
<shadow type="force">
</shadow>
</value>
<value name="value3">
<shadow type="axis">
</shadow>
</value>
</block>
<block type="contactEntity"></block>
<block type="other"></block>
<block type="force"></block>
<block type="axis"></block>
</category>
<category name="控制" colour="#40BCFF">
<block type="controls_repeat_ext">
<value name="TIMES">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="controls_whileUntil"></block>
<block type="controls_for">
<value name="BY">
<shadow type="math_number"></shadow>
</value>
<value name="FROM">
<shadow type="math_number"></shadow>
</value>
<value name="TO">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="controls_forEach">
</block>
<block type="controls_flow_statements"></block>
<block type="controls_if"></block>
<block type="controls_ifelse"></block>
<block type="note">
<field name="VALUE">一个注释</field>
</block>
<block type="sleep">
<value name="Number">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="output">
<value name="Text">
<block type="text">
<field name="TEXT">Hello,BOX3!</field>
</block>
</value>
</block>
<block type="clearConsole"></block>
<block type="outError">
<value name="Text">
<block type="text">
<field name="TEXT">Error:Hello,BOX3!</field>
</block>
</value>
</block>
<block type="outWarn">
<value name="Text">
<block type="text">
<field name="TEXT">Warn:Hello,BOX3!</field>
</block>
</value>
</block>
<block type="outDeBug">
<value name="Text">
<block type="text">
<field name="TEXT">Hello,BOX3!</field>
</block>
</value>
</block>
</category>
<category name="世界" colour="#CD40FF">
<block type="Box3World"></block>
<block type="projectName"></block>
<block type="url"></block>
<block type="anEntity">
<value name="Name">
<shadow type="text"></shadow>
</value>
</block>
<block type="worldQuerySelector">
<comment>http://docs.box3.codemao.cn/box3world.html#search-%E6%90%9C%E7%B4%A2</comment>
<field name="s">#实体</field>
</block>
<block type="allEntity">
<comment>将返回一个数组</comment>
</block>
<block type="WSay">
<value name="VALUE">
<shadow type="text">
<field name="TEXT">Hello,BOX3!</field>
</shadow>
</value>
</block>
<block type="gravity">
<value name="Number">
<shadow type="math_number">
<field name="NUM">-1.1</field>
</shadow>
</value>
</block>
<block type="airFriction">
<value name="number">
<shadow type="math_number">
<field name="NUM">0.001</field>
</shadow>
</value>
</block>
<block type="maxFog">
<value name="number">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="fogColor">
<value name="color">
<block type="rgbColor">
</block>
</value>
</block>
<block type="fogStartDistance">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="fogHeightOffset">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="fogUniformDensity">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="fogHeightFalloff">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainSpeed">
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="rainColor">
<value name="color">
<block type="rgbaColor">
</block>
</value>
</block>
<block type="rainDirection">
<value name="direction">
<block type="vector3">
</block>
</value>
</block>
<block type="rainDensity">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainInterference">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainSizeLo">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainSizeHi">
<value name="num">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="snowColor">
<value name="color">
<block type="rgbaColor">
</block>
</value>
</block>
<block type="snowTexture">
</block>
<block type="snowDensity">
<value name="num">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="snowFallSpeed">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="snowSpinSpeed">
<value name="vector3">
<block type="vector3">
</block>
</value>
</block>
<block type="snowSizeLo">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="snowSizeHi">
<value name="num">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="lightMode"></block>
<block type="sunFrequency">
<value name="number">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="sunPhase">
<comment>https://docs.box3.codemao.cn/box3world.html#worldsunphase</comment>
<value name="number">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="lunarPhase">
<comment>https://docs.box3.codemao.cn/box3world.html#worldlunarphase</comment>
<value name="number">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="sunDirection">
<value name="vector">
<block type="vector3">
<value name="X">
<shadow type="math_number"></shadow>
</value>
<value name="Y">
<shadow type="math_number"></shadow>
</value>
<value name="Z">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="sunLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyLeftLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyRightLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyBottomLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyTopLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyFrontLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyBackLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
</category>
<category name="实体" colour="#FF4281">
<block type="Box3Entity"></block>
<block type="entityObject">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityMesh">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="mesh">
<shadow type="text">
<field name="TEXT">mesh/实体.vb</field>
</shadow>
</value>
</block>
<block type="entityPosition">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="pos">
<block type="vector3"></block>
</value>
</block>
<block type="entityScale">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="scale">
<block type="vector3"></block>
</value>
</block>
<block type="entityColor">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="color">
<block type="rgbaColor"></block>
</value>
</block>
<block type="entityInvisible">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityEmissive">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="entityMetaIness">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="entityShininess">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="entityOffset">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="offset">
<block type="vector3"></block>
</value>
</block>
<block type="entityBounds">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityCollides">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityFixed">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityFriction">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityGravity">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityMass">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="entityRestitution">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityVelocity">
<comment>设置实体的移动方向</comment>
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="vector3">
<block type="vector3"></block>
</value>
</block>
<block type="entityContactForce">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entitySay">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="text">
<shadow type="text">
<field name="TEXT">Hello,BOX3!</field>
</shadow>
</value>
</block>
<block type="entityEnableInteract">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityInteractRadius">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number">
<field name="NUM">16</field>
</shadow>
</value>
</block>
<block type="entityInteractHint">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="hint">
<shadow type="text">
<field name="TEXT">npc</field>
</shadow>
</value>
</block>
<block type="entityInteractColor">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="color">
<block type="rgbColor"></block>
</value>
</block>
</category>
<category name="方块" colour="#30BF82">
<block type="Box3Voxels"></block>
<block type="setVoxel">
<value name="X">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">8</field>
</shadow>
</value>
<value name="Z">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<field name="VOXEL">dirt</field>
</block>
<block type="setVoxelId">
<value name="X">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">8</field>
</shadow>
</value>
<value name="Z">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="VOXEL">
<shadow type="math_number">
<field name="NUM"></field>
</shadow>
</value>
</block>
<block type="getVoxel">
<value name="X">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">8</field>
</shadow>
</value>
<value name="Z">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
</block>
<block type="voxelsId">
<value name="name">
<shadow type="text">
<field name="TEXT">dirt</field>
</shadow>
</value>
</block>
<block type="voxelsName">
<value name="id">
<shadow type="math_number">
<field name="NUM">2</field>
</shadow>
</value>
</block>
</category>
<category name="玩家" colour="#FF737D">
<block type="Box3Player"></block>
<block type="playerName">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
</block>
<block type="playerBoxId">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
</block>
<block type="playerUserKey">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
</block>
<block type="playerSpawnPoint">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
<value name="pos">
<block type="vector3"></block>
</value>
</block>
<block type="playerMovementBounds">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
<value name="pos">
<block type="vector3"></block>
</value>
</block>
<block type="playerDirectMessage">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
<value name="chat">
<shadow type="text">
<field name="TEXT">Hello,BOX3!</field>
</shadow>
</value>
</block>
<block type="playerMuted">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerColor">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="color">
<block type="rgbColor"></block>
</value>
</block>
<block type="playerEmissive">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="playerInvisible">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerShowName">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerScale">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="scale">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="playerMetalness">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="playerShininess">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="playerCanFly">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerSpectator">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerEnableJump">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerEnableDoubleJump">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerWalkSpeed">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number">
<field name="NUM">0.22</field>
</shadow>
</value>
</block>
<block type="playerRunSpeed">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number">
<field name="NUM">0.4</field>
</shadow>
</value>
</block>
<block type="playerRunAcceleration">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number">
<field name="NUM">0.35</field>
</shadow>
</value>
</block>
</category>
<category name="文本" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>
<block type="text_join">
</block>
<block type="text_length"></block>
<block type="text_append"></block>
<block type="text_isEmpty"></block>
<block type="text_indexOf"></block>
<block type="text_charAt"></block>
</category>
<category name="运算" colour="%{BKY_MATH_HUE}">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="math_single"></block>
<block type="math_trig"></block>
<block type="math_constant"></block>
<block type="logic_compare"></block>
<block type="logic_operation"> </block>
<block type="logic_boolean"></block>
<block type="math_number_property"></block>
</category>
<category name="向量" colour="#42FF42">
<block type="vector3">
<value name="X">
<shadow type="math_number"></shadow>
</value>
<value name="Y">
<shadow type="math_number"></shadow>
</value>
<value name="Z">
<shadow type="math_number"></shadow>
</value>
</block>
</category>
<category name="色彩" colour="%{BKY_RGB_HUE}">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="rgbaColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="变量" custom="VARIABLE" colour="%{BKY_VARIABLES_HUE}"></category>
<category name="数组" colour="#FFD300">
<block type="lists_create_with">
<mutation items="0"></mutation>
</block>
<block type="lists_create_with"></block>
<block type="lists_repeat">
<value name="NUM">
<shadow type="math_number">
<field name="NUM">5</field>
</shadow>
</value>
</block>
<block type="lists_length"></block>
<block type="lists_isEmpty"></block>
<block type="lists_indexOf">
<value name="VALUE">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_getIndex">
<value name="VALUE">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_setIndex">
<value name="LIST">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_getSublist">
<value name="LIST">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_split">
<value name="DELIM">
<shadow type="text">
<field name="TEXT">,</field>
</shadow>
</value>
</block>
<block type="lists_sort"></block>
</category>
<category name="函数" custom="PROCEDURE" colour="#FF7400"></category>
</xml>
<script src="scripts/blockly.min.js"></script>
<!--<script src="scripts/msg/zh-hans.js"></script>-->
<script src="scripts/blocks.js"></script>
<script src="scripts/custom_render.js"></script>
<script src="scripts/main.js"></script>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。