mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-27 01:30:03 +00:00
Added "Clear Window" block
This commit is contained in:
parent
e3f94a7a9e
commit
dd423e73e4
@ -52,6 +52,7 @@
|
||||
</category>
|
||||
<category name="Text">
|
||||
<block type="text_window"></block>
|
||||
<block type="text_clear_window"></block>
|
||||
<block type="text_moveto"></block>
|
||||
<block type="text_print"></block>
|
||||
<block type="text_println"></block>
|
||||
|
@ -161,6 +161,18 @@ if (typeof Mythos === "undefined") {
|
||||
this.setTooltip('Print text and leave cursor at end of last printed character');
|
||||
}
|
||||
};
|
||||
Blockly.Blocks['text_clear_window'] = {
|
||||
init: function() {
|
||||
this.setHelpUrl('https://docs.google.com/document/d/1VXbiY4G533-cokjQevZFhwvqMMCL--17ziMAoFoeJ5M');
|
||||
this.setColour(54);
|
||||
this.setPreviousStatement(true);
|
||||
this.setNextStatement(true);
|
||||
this.appendDummyInput()
|
||||
.appendField("Clear Window");
|
||||
this.setOutput(false);
|
||||
this.setTooltip('Clears text window and moves cursor to the top');
|
||||
}
|
||||
};
|
||||
Blockly.Blocks['text_scroll'] = {
|
||||
init: function() {
|
||||
this.setHelpUrl('https://docs.google.com/document/d/1VXbiY4G533-cokjQevZFhwvqMMCL--17ziMAoFoeJ5M');
|
||||
|
Loading…
x
Reference in New Issue
Block a user