mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-27 10:29:40 +00:00
Added Blockly event for switching to different map.
This commit is contained in:
parent
ac2e03e35d
commit
8dd017de6e
@ -49,6 +49,7 @@
|
|||||||
<block type="logic_cointoss"></block>
|
<block type="logic_cointoss"></block>
|
||||||
</category>
|
</category>
|
||||||
<category name="Events">
|
<category name="Events">
|
||||||
|
<block type="events_setmap"></block>
|
||||||
</category>
|
</category>
|
||||||
<category name="Text">
|
<category name="Text">
|
||||||
<block type="text_window"></block>
|
<block type="text_window"></block>
|
||||||
|
@ -84,6 +84,18 @@ if (typeof Mythos === "undefined") {
|
|||||||
.appendField("Coin toss");
|
.appendField("Coin toss");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Blockly.Blocks['events_setmap'] = {
|
||||||
|
init: function() {
|
||||||
|
this.setHelpUrl(Mythos.helpUrl);
|
||||||
|
this.setColour(54);
|
||||||
|
this.setPreviousStatement(true);
|
||||||
|
this.setNextStatement(false);
|
||||||
|
this.appendValueInput("VALUE")
|
||||||
|
.appendField("Set map");
|
||||||
|
this.setOutput(false);
|
||||||
|
this.setTooltip('Switch to a different map (by name)');
|
||||||
|
}
|
||||||
|
};
|
||||||
Blockly.Blocks['text_window'] = {
|
Blockly.Blocks['text_window'] = {
|
||||||
init: function() {
|
init: function() {
|
||||||
this.setHelpUrl(Mythos.helpUrl);
|
this.setHelpUrl(Mythos.helpUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user