mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-26 04:32:05 +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>
|
||||
</category>
|
||||
<category name="Events">
|
||||
<block type="events_setmap"></block>
|
||||
</category>
|
||||
<category name="Text">
|
||||
<block type="text_window"></block>
|
||||
|
@ -84,6 +84,18 @@ if (typeof Mythos === "undefined") {
|
||||
.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'] = {
|
||||
init: function() {
|
||||
this.setHelpUrl(Mythos.helpUrl);
|
||||
|
Loading…
Reference in New Issue
Block a user