kopia lustrzana https://github.com/backface/turtlestitch
enable sending green-flag events when switching scenes
rodzic
25d7d97f05
commit
52473cfb4e
|
@ -41,6 +41,9 @@
|
||||||
* German
|
* German
|
||||||
* Chinese, thanks, Simon!
|
* Chinese, thanks, Simon!
|
||||||
|
|
||||||
|
### 2021-10-20
|
||||||
|
* blocks: enable sending green-flag events when switching scenes
|
||||||
|
|
||||||
### 2021-10-19
|
### 2021-10-19
|
||||||
* threads: enable sending green-flag events to specific sprites
|
* threads: enable sending green-flag events to specific sprites
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<script src="src/morphic.js?version=2021-07-09"></script>
|
<script src="src/morphic.js?version=2021-07-09"></script>
|
||||||
<script src="src/symbols.js?version=2021-03-03"></script>
|
<script src="src/symbols.js?version=2021-03-03"></script>
|
||||||
<script src="src/widgets.js?version=2021-07-21"></script>
|
<script src="src/widgets.js?version=2021-07-21"></script>
|
||||||
<script src="src/blocks.js?version=2021-10-14"></script>
|
<script src="src/blocks.js?version=2021-10-20"></script>
|
||||||
<script src="src/threads.js?version=2021-10-19"></script>
|
<script src="src/threads.js?version=2021-10-19"></script>
|
||||||
<script src="src/objects.js?version=2021-10-14"></script>
|
<script src="src/objects.js?version=2021-10-14"></script>
|
||||||
<script src="src/scenes.js?version=2021-10-12"></script>
|
<script src="src/scenes.js?version=2021-10-12"></script>
|
||||||
|
|
|
@ -160,7 +160,7 @@ CustomCommandBlockMorph, ToggleButtonMorph, DialMorph, SnapExtensions*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.blocks = '2021-October-14';
|
modules.blocks = '2021-October-20';
|
||||||
|
|
||||||
var SyntaxElementMorph;
|
var SyntaxElementMorph;
|
||||||
var BlockMorph;
|
var BlockMorph;
|
||||||
|
@ -593,6 +593,10 @@ SyntaxElementMorph.prototype.labelParts = {
|
||||||
tags: 'read-only static',
|
tags: 'read-only static',
|
||||||
menu: 'messagesReceivedMenu'
|
menu: 'messagesReceivedMenu'
|
||||||
},
|
},
|
||||||
|
'%msgSend': {
|
||||||
|
type: 'input',
|
||||||
|
menu: 'eventsMenu'
|
||||||
|
},
|
||||||
'%att': {
|
'%att': {
|
||||||
type: 'input',
|
type: 'input',
|
||||||
tags: 'read-only',
|
tags: 'read-only',
|
||||||
|
@ -994,7 +998,7 @@ SyntaxElementMorph.prototype.labelParts = {
|
||||||
},
|
},
|
||||||
'%send': {
|
'%send': {
|
||||||
type: 'multi',
|
type: 'multi',
|
||||||
slots: '%s',
|
slots: '%msgSend',
|
||||||
label: 'and send',
|
label: 'and send',
|
||||||
tags: 'static',
|
tags: 'static',
|
||||||
max: 1
|
max: 1
|
||||||
|
@ -9357,6 +9361,11 @@ InputSlotMorph.prototype.messagesReceivedMenu = function (searching) {
|
||||||
return dict;
|
return dict;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
InputSlotMorph.prototype.eventsMenu = function (searching) {
|
||||||
|
if (searching) {return {}; }
|
||||||
|
return {__shout__go__: ['__shout__go__']};
|
||||||
|
};
|
||||||
|
|
||||||
InputSlotMorph.prototype.primitivesMenu = function () {
|
InputSlotMorph.prototype.primitivesMenu = function () {
|
||||||
var dict = {},
|
var dict = {},
|
||||||
allNames = Array.from(SnapExtensions.primitives.keys());
|
allNames = Array.from(SnapExtensions.primitives.keys());
|
||||||
|
@ -9919,7 +9928,8 @@ InputSlotMorph.prototype.fixLayout = function () {
|
||||||
// InputSlotMorph events:
|
// InputSlotMorph events:
|
||||||
|
|
||||||
InputSlotMorph.prototype.mouseDownLeft = function (pos) {
|
InputSlotMorph.prototype.mouseDownLeft = function (pos) {
|
||||||
if (this.isReadOnly || this.arrow().bounds.containsPoint(pos)) {
|
if (this.isReadOnly || this.symbol ||
|
||||||
|
this.arrow().bounds.containsPoint(pos)) {
|
||||||
this.escalateEvent('mouseDownLeft', pos);
|
this.escalateEvent('mouseDownLeft', pos);
|
||||||
} else {
|
} else {
|
||||||
this.selectForEdit().contents().edit();
|
this.selectForEdit().contents().edit();
|
||||||
|
@ -9929,7 +9939,7 @@ InputSlotMorph.prototype.mouseDownLeft = function (pos) {
|
||||||
InputSlotMorph.prototype.mouseClickLeft = function (pos) {
|
InputSlotMorph.prototype.mouseClickLeft = function (pos) {
|
||||||
if (this.arrow().bounds.containsPoint(pos)) {
|
if (this.arrow().bounds.containsPoint(pos)) {
|
||||||
this.dropDownMenu();
|
this.dropDownMenu();
|
||||||
} else if (this.isReadOnly) {
|
} else if (this.isReadOnly || this.symbol) {
|
||||||
this.dropDownMenu();
|
this.dropDownMenu();
|
||||||
} else {
|
} else {
|
||||||
this.contents().edit();
|
this.contents().edit();
|
||||||
|
|
Ładowanie…
Reference in New Issue