kopia lustrzana https://github.com/backface/turtlestitch
show the common attributes for sprites in the OF-dropdown by default
rodzic
79ef41891e
commit
ce0d2216e1
|
@ -5,6 +5,7 @@
|
|||
* **Notable Changes:**
|
||||
* added "loadProjectXML" method to the api
|
||||
* hyperized "atrribute OF sprite" reporter primitive in the sensing category
|
||||
* show the common attributes for sprites in the OF-dropdown by default
|
||||
* **Documentation Updates:**
|
||||
* API update for "loadProjectXML"
|
||||
|
||||
|
@ -13,6 +14,7 @@
|
|||
* api: new loadProjectXML() method
|
||||
* updated api documentation
|
||||
* threads: hyperized "atrribute OF sprite" reporter primitive
|
||||
* blocks: show the common attributes for sprites in the OF-dropdown by default
|
||||
|
||||
## 6.3.6
|
||||
* **Notable Changes:**
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script src="src/morphic.js?version=2020-11-12"></script>
|
||||
<script src="src/symbols.js?version=2020-10-07"></script>
|
||||
<script src="src/widgets.js?version=2020-10-06"></script>
|
||||
<script src="src/blocks.js?version=2020-11-17"></script>
|
||||
<script src="src/blocks.js?version=2020-11-21"></script>
|
||||
<script src="src/threads.js?version=2020-11-21"></script>
|
||||
<script src="src/objects.js?version=2020-11-20"></script>
|
||||
<script src="src/gui.js?version=2020-11-21"></script>
|
||||
|
|
|
@ -158,7 +158,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.blocks = '2020-November-17';
|
||||
modules.blocks = '2020-November-21';
|
||||
|
||||
var SyntaxElementMorph;
|
||||
var BlockMorph;
|
||||
|
@ -9417,10 +9417,20 @@ InputSlotMorph.prototype.attributesMenu = function () {
|
|||
morph => morph.name === objName
|
||||
);
|
||||
}
|
||||
if (!obj) {
|
||||
return dict;
|
||||
}
|
||||
if (obj instanceof SpriteMorph) {
|
||||
if (obj instanceof StageMorph) {
|
||||
dict = {
|
||||
'costume #' : ['costume #'],
|
||||
'costume name' : ['costume name'],
|
||||
'volume' : ['volume'],
|
||||
'balance' : ['balance'],
|
||||
'width': ['width'],
|
||||
'height': ['height'],
|
||||
'left' : ['left'],
|
||||
'right' : ['right'],
|
||||
'top' : ['top'],
|
||||
'bottom' : ['bottom']
|
||||
};
|
||||
} else { // assume a sprite
|
||||
dict = {
|
||||
'x position' : ['x position'],
|
||||
'y position' : ['y position'],
|
||||
|
@ -9437,20 +9447,8 @@ InputSlotMorph.prototype.attributesMenu = function () {
|
|||
'volume' : ['volume'],
|
||||
'balance' : ['balance']
|
||||
};
|
||||
} else { // the stage
|
||||
dict = {
|
||||
'costume #' : ['costume #'],
|
||||
'costume name' : ['costume name'],
|
||||
'volume' : ['volume'],
|
||||
'balance' : ['balance'],
|
||||
'width': ['width'],
|
||||
'height': ['height'],
|
||||
'left' : ['left'],
|
||||
'right' : ['right'],
|
||||
'top' : ['top'],
|
||||
'bottom' : ['bottom']
|
||||
};
|
||||
}
|
||||
if (obj) {
|
||||
varNames = obj.variables.names();
|
||||
if (varNames.length > 0) {
|
||||
dict['~'] = null;
|
||||
|
@ -9461,6 +9459,7 @@ InputSlotMorph.prototype.attributesMenu = function () {
|
|||
obj.allBlocks(true).forEach((def, i) =>
|
||||
dict['§_def' + i] = def.blockInstance(true) // include translations
|
||||
);
|
||||
}
|
||||
return dict;
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue