kopia lustrzana https://github.com/backface/turtlestitch
enabled "duplicate block definition" in the palette
rodzic
865ac5391a
commit
fe9a2890e1
|
@ -5,6 +5,7 @@
|
|||
###2018-11-06
|
||||
* new dev version
|
||||
* Blocks: fixed a scope issue introduced in v4.2.2.4
|
||||
* Blocks: enabled "duplicate block definition" in the palette
|
||||
|
||||
## v4.2.2.5
|
||||
###2018-11-02
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<script type="text/javascript" src="src/gui.js?version=2018-11-06"></script>
|
||||
<script type="text/javascript" src="src/paint.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/lists.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/byob.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/byob.js?version=2018-11-06"></script>
|
||||
<script type="text/javascript" src="src/tables.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/symbols.js?version=2018-10-02"></script>
|
||||
<script type="text/javascript" src="src/sketch.js?version=2018-10-02"></script>
|
||||
|
|
17
src/byob.js
17
src/byob.js
|
@ -987,7 +987,7 @@ CustomCommandBlockMorph.prototype.userMenu = function () {
|
|||
var hat = this.parentThatIsA(PrototypeHatBlockMorph),
|
||||
rcvr = this.scriptTarget(),
|
||||
myself = this,
|
||||
shiftClicked = this.world().currentKey === 16,
|
||||
// shiftClicked = this.world().currentKey === 16,
|
||||
menu;
|
||||
|
||||
function addOption(label, toggle, test, onHint, offHint) {
|
||||
|
@ -1084,16 +1084,11 @@ CustomCommandBlockMorph.prototype.userMenu = function () {
|
|||
} else {
|
||||
menu.addLine();
|
||||
}
|
||||
/*
|
||||
if (shiftClicked) {
|
||||
// menu.addItem("export definition...", 'exportBlockDefinition');
|
||||
menu.addItem(
|
||||
"duplicate block definition...",
|
||||
'duplicateBlockDefinition',
|
||||
null,
|
||||
new Color(100, 0, 0)
|
||||
);
|
||||
menu.addItem("export definition...", 'exportBlockDefinition');
|
||||
}
|
||||
|
||||
*/
|
||||
if (this.isTemplate) { // inside the palette
|
||||
if (this.isGlobal) {
|
||||
menu.addItem(
|
||||
|
@ -1144,6 +1139,10 @@ CustomCommandBlockMorph.prototype.userMenu = function () {
|
|||
);
|
||||
}
|
||||
}
|
||||
menu.addItem(
|
||||
"duplicate block definition...",
|
||||
'duplicateBlockDefinition'
|
||||
);
|
||||
} else { // inside a script
|
||||
// if global or own method - let the user delete the definition
|
||||
if (this.isGlobal ||
|
||||
|
|
Ładowanie…
Reference in New Issue