reordered MY block dropdown by data type

pull/89/head
jmoenig 2019-05-02 11:50:56 +02:00
rodzic bd3a4d9ecf
commit cbc06cef80
3 zmienionych plików z 36 dodań i 18 usunięć

Wyświetl plik

@ -74,6 +74,9 @@
* German * German
* French * French
### 2019-05-02
* Blocks: reordered MY block dropdown by data type
### 2019-04-30 ### 2019-04-30
* Blocks, Threads: added "id" to image attributes dropdown * Blocks, Threads: added "id" to image attributes dropdown
* Blocks, Threads: removed "id" from image attributes * Blocks, Threads: removed "id" from image attributes

Wyświetl plik

@ -6,7 +6,7 @@
<link rel="shortcut icon" href="src/favicon.ico"> <link rel="shortcut icon" href="src/favicon.ico">
<script type="text/javascript" src="src/morphic.js?version=2019-02-07"></script> <script type="text/javascript" src="src/morphic.js?version=2019-02-07"></script>
<script type="text/javascript" src="src/widgets.js?version=2019-04-05"></script> <script type="text/javascript" src="src/widgets.js?version=2019-04-05"></script>
<script type="text/javascript" src="src/blocks.js?version=2019-04-30"></script> <script type="text/javascript" src="src/blocks.js?version=2019-05-02"></script>
<script type="text/javascript" src="src/threads.js?version=2019-04-30"></script> <script type="text/javascript" src="src/threads.js?version=2019-04-30"></script>
<script type="text/javascript" src="src/objects.js?version=2019-04-30"></script> <script type="text/javascript" src="src/objects.js?version=2019-04-30"></script>
<script type="text/javascript" src="src/gui.js?version=2019-04-27"></script> <script type="text/javascript" src="src/gui.js?version=2019-04-27"></script>

Wyświetl plik

@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2019-April-30'; modules.blocks = '2019-May-02';
var SyntaxElementMorph; var SyntaxElementMorph;
var BlockMorph; var BlockMorph;
@ -8838,31 +8838,46 @@ InputSlotMorph.prototype.typesMenu = function () {
}; };
InputSlotMorph.prototype.gettablesMenu = function () { InputSlotMorph.prototype.gettablesMenu = function () {
var dict = { var dict = {},
neighbors : ['neighbors'], nest = SpriteMorph.prototype.enableNesting,
self : ['self'], oop = StageMorph.prototype.enableInheritance;
'other sprites' : ['other sprites'],
clones : ['clones'], // (single) objects
'other clones' : ['other clones'] dict.self = ['self'];
}; if (nest) {
if (SpriteMorph.prototype.enableNesting) {
dict.parts = ['parts'];
dict.anchor = ['anchor']; dict.anchor = ['anchor'];
} }
dict.stage = ['stage']; if (oop) {
if (StageMorph.prototype.enableInheritance) {
dict.children = ['children'];
dict.parent = ['parent']; dict.parent = ['parent'];
if (this.world().isDevMode) {
dict['temporary?'] = ['temporary?'];
}
} }
dict.name = ['name']; dict.stage = ['stage'];
dict.costume = ['costume']; dict.costume = ['costume'];
// strings
dict.name = ['name'];
// lists
if (nest) {
dict.parts = ['parts'];
}
if (oop) {
dict.children = ['children'];
}
dict.costumes = ['costumes']; dict.costumes = ['costumes'];
dict.sounds = ['sounds']; dict.sounds = ['sounds'];
dict.neighbors = ['neighbors'];
dict['other sprites'] = ['other sprites'];
dict.clones = ['clones'];
dict['other clones'] = ['other clones'];
// Booleans
dict['dangling?'] = ['dangling?']; dict['dangling?'] = ['dangling?'];
dict['draggable?'] = ['draggable?']; dict['draggable?'] = ['draggable?'];
if (oop && this.world().isDevMode) {
dict['temporary?'] = ['temporary?'];
}
// numbers
dict['rotation style'] = ['rotation style']; dict['rotation style'] = ['rotation style'];
dict['rotation x'] = ['rotation x']; dict['rotation x'] = ['rotation x'];
dict['rotation y'] = ['rotation y']; dict['rotation y'] = ['rotation y'];