commit
1e68fb92bd
@ -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": [
|
||||||
|
|||||||
@ -159,10 +159,10 @@
|
|||||||
<button onclick="editor_blockly.parse()">解析</button>
|
<button onclick="editor_blockly.parse()">解析</button>
|
||||||
<button onclick="editor_blockly.cancel()">取消</button>
|
<button onclick="editor_blockly.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%">
|
||||||
|
|||||||
@ -13,6 +13,8 @@ functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
core.material.items.pickaxe.text = "可以破坏勇士四周的墙";
|
core.material.items.pickaxe.text = "可以破坏勇士四周的墙";
|
||||||
if (core.flags.bombFourDirections)
|
if (core.flags.bombFourDirections)
|
||||||
core.material.items.bomb.text = "可以炸掉勇士四周的怪物";
|
core.material.items.bomb.text = "可以炸掉勇士四周的怪物";
|
||||||
|
if (core.flags.snowFourDirections)
|
||||||
|
core.material.items.bomb.text = "可以将四周的熔岩变成平地";
|
||||||
if (core.flags.equipment) {
|
if (core.flags.equipment) {
|
||||||
core.material.items.sword1.cls = 'constants';
|
core.material.items.sword1.cls = 'constants';
|
||||||
core.material.items.sword2.cls = 'constants';
|
core.material.items.sword2.cls = 'constants';
|
||||||
|
|||||||
@ -131,7 +131,7 @@ items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"snow": {
|
"snow": {
|
||||||
"cls": "constants",
|
"cls": "constants",
|
||||||
"name": "冰冻徽章",
|
"name": "冰冻徽章",
|
||||||
"text": "可以将四周的熔岩变成平地"
|
"text": "可以将面前的熔岩变成平地"
|
||||||
},
|
},
|
||||||
"cross": {
|
"cross": {
|
||||||
"cls": "constants",
|
"cls": "constants",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user