kopia lustrzana https://github.com/backface/turtlestitch
activate generic hat blocks inserted via keyboard editing
rodzic
220b3ea760
commit
8d0a7f19b5
19
blocks.js
19
blocks.js
|
@ -149,7 +149,7 @@ isSnapObject, copy, PushButtonMorph, SpriteIconMorph*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.blocks = '2016-July-14';
|
||||
modules.blocks = '2016-July-15';
|
||||
|
||||
var SyntaxElementMorph;
|
||||
var BlockMorph;
|
||||
|
@ -12110,7 +12110,7 @@ ScriptFocusMorph.prototype.deleteLastElement = function () {
|
|||
};
|
||||
|
||||
ScriptFocusMorph.prototype.insertBlock = function (block) {
|
||||
var pb;
|
||||
var pb, stage, ide;
|
||||
block.isTemplate = false;
|
||||
block.isDraggable = true;
|
||||
|
||||
|
@ -12173,6 +12173,21 @@ ScriptFocusMorph.prototype.insertBlock = function (block) {
|
|||
this.editor.adjustBounds();
|
||||
// block.scrollIntoView();
|
||||
this.fixLayout();
|
||||
|
||||
// register generic hat blocks
|
||||
if (block.selector === 'receiveCondition') {
|
||||
if (this.editor.owner) {
|
||||
stage = this.editor.owner.parentThatIsA(StageMorph);
|
||||
if (stage) {
|
||||
stage.enableCustomHatBlocks = true;
|
||||
stage.threads.pauseCustomHatBlocks = false;
|
||||
ide = stage.parentThatIsA(IDE_Morph);
|
||||
if (ide) {
|
||||
ide.controlBar.stopButton.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
ScriptFocusMorph.prototype.insertVariableGetter = function () {
|
||||
|
|
4
gui.js
4
gui.js
|
@ -72,7 +72,7 @@ isRetinaSupported*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2016-July-14';
|
||||
modules.gui = '2016-July-15';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -2982,7 +2982,7 @@ IDE_Morph.prototype.aboutSnap = function () {
|
|||
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
|
||||
world = this.world();
|
||||
|
||||
aboutTxt = 'Snap! 4.0.8\nBuild Your Own Blocks\n\n'
|
||||
aboutTxt = 'Snap! 4.0.8.1\nBuild Your Own Blocks\n\n'
|
||||
+ 'Copyright \u24B8 2016 Jens M\u00F6nig and '
|
||||
+ 'Brian Harvey\n'
|
||||
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n'
|
||||
|
|
|
@ -2929,6 +2929,8 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
|
|||
|
||||
== v4.0.7.2 ====
|
||||
|
||||
160714
|
||||
------
|
||||
* New Features
|
||||
- Retina Display Support, thanks, Bartosz Leper!!
|
||||
- Additional Graphic Effects, thanks, Dylan Servilla!!
|
||||
|
@ -2956,3 +2958,10 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
|
|||
- German
|
||||
|
||||
== v4.0.8 ==== - retina screen support -
|
||||
|
||||
160715
|
||||
------
|
||||
* Blocks: activate generic hat blocks inserted via keyboard editing
|
||||
|
||||
== v4.0.8.1 ====
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue