blockly侧边栏改成中文

This commit is contained in:
YouWei Zhao 2018-06-05 14:29:09 +08:00
parent fc538c994c
commit a7f156b73b
2 changed files with 8 additions and 8 deletions

View File

@ -11,7 +11,7 @@ editor_blockly = function () {
} }
var toolboxObj = { var toolboxObj = {
'entry':[ '入口方块':[
MotaActionFunctions.actionParser.parse([ MotaActionFunctions.actionParser.parse([
"欢迎使用事件编辑器", "欢迎使用事件编辑器",
"本事件触发一次后会消失", "本事件触发一次后会消失",
@ -49,7 +49,7 @@ editor_blockly = function () {
MotaActionBlocks['afterOpenDoor_m'].xmlText(), MotaActionBlocks['afterOpenDoor_m'].xmlText(),
MotaActionBlocks['firstArrive_m'].xmlText(), MotaActionBlocks['firstArrive_m'].xmlText(),
], ],
'statement':[ '语句块':[
'<label text="显示文字"></label>', '<label text="显示文字"></label>',
MotaActionBlocks['text_0_s'].xmlText(), MotaActionBlocks['text_0_s'].xmlText(),
MotaActionBlocks['text_1_s'].xmlText(), MotaActionBlocks['text_1_s'].xmlText(),
@ -119,7 +119,7 @@ editor_blockly = function () {
'<label text="其他"></label>', '<label text="其他"></label>',
MotaActionBlocks['function_s'].xmlText(), MotaActionBlocks['function_s'].xmlText(),
], ],
'value':[ '值块':[
MotaActionBlocks['setValue_s'].xmlText(), MotaActionBlocks['setValue_s'].xmlText(),
MotaActionBlocks['expression_arithmetic_0'].xmlText(), MotaActionBlocks['expression_arithmetic_0'].xmlText(),
MotaActionBlocks['negate_e'].xmlText(), MotaActionBlocks['negate_e'].xmlText(),
@ -129,7 +129,7 @@ editor_blockly = function () {
MotaActionBlocks['idString_2_e'].xmlText(), MotaActionBlocks['idString_2_e'].xmlText(),
MotaActionBlocks['evalString_e'].xmlText(), MotaActionBlocks['evalString_e'].xmlText(),
], ],
'template':[ '常见事件模板':[
'<label text="检测音乐如果没有开启则系统提示开启"></label>', '<label text="检测音乐如果没有开启则系统提示开启"></label>',
MotaActionFunctions.actionParser.parseList({"type": "if", "condition": "!core.musicStatus.bgmStatus", MotaActionFunctions.actionParser.parseList({"type": "if", "condition": "!core.musicStatus.bgmStatus",
"true": [ "true": [

View File

@ -161,10 +161,10 @@
<button onclick="editor_blockly.parse()">parse</button> <button onclick="editor_blockly.parse()">parse</button>
<button onclick="editor_blockly.cancel()">cancel</button> <button onclick="editor_blockly.cancel()">cancel</button>
<xml id="toolbox" style="display:none"> <xml id="toolbox" style="display:none">
<category name="entry"></category> <category name="入口方块"></category>
<category name="statement"></category> <category name="语句块"></category>
<category name="value"></category> <category name="值块"></category>
<category name="template"></category> <category name="常见事件模板"></category>
</xml> </xml>
</h3> </h3>
<div style="position: relative;height: 100%"> <div style="position: relative;height: 100%">