kopia lustrzana https://github.com/backface/turtlestitch
fixed a glitch in the custom block help mechanism (show only the prototype)
rodzic
cbe0dc6723
commit
0565310e52
|
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
### 2019-02-15
|
### 2019-02-15
|
||||||
* BYOB: tweaked yesterday's fix...
|
* BYOB: tweaked yesterday's fix...
|
||||||
|
* Blocks: fixed a glitch in the custom block help mechanism (show only the prototype)
|
||||||
|
|
||||||
### 2019-02-14
|
### 2019-02-14
|
||||||
* BYOB: keep empty numerical input slots in custom blocks empty when relabelling
|
* BYOB: keep empty numerical input slots in custom blocks empty when relabelling
|
||||||
|
|
|
||||||
|
|
@ -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=2018-10-02"></script>
|
<script type="text/javascript" src="src/widgets.js?version=2018-10-02"></script>
|
||||||
<script type="text/javascript" src="src/blocks.js?version=2019-02-07"></script>
|
<script type="text/javascript" src="src/blocks.js?version=2019-02-15"></script>
|
||||||
<script type="text/javascript" src="src/threads.js?version=2019-01-28"></script>
|
<script type="text/javascript" src="src/threads.js?version=2019-01-28"></script>
|
||||||
<script type="text/javascript" src="src/objects.js?version=2019-02-07"></script>
|
<script type="text/javascript" src="src/objects.js?version=2019-02-07"></script>
|
||||||
<script type="text/javascript" src="src/gui.js?version=2019-02-07"></script>
|
<script type="text/javascript" src="src/gui.js?version=2019-02-07"></script>
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.blocks = '2019-February-07';
|
modules.blocks = '2019-February-15';
|
||||||
|
|
||||||
var SyntaxElementMorph;
|
var SyntaxElementMorph;
|
||||||
var BlockMorph;
|
var BlockMorph;
|
||||||
|
|
@ -3129,6 +3129,7 @@ BlockMorph.prototype.showHelp = function () {
|
||||||
blockEditor,
|
blockEditor,
|
||||||
pic = new Image(),
|
pic = new Image(),
|
||||||
help,
|
help,
|
||||||
|
def,
|
||||||
comment,
|
comment,
|
||||||
block,
|
block,
|
||||||
spec,
|
spec,
|
||||||
|
|
@ -3164,11 +3165,12 @@ BlockMorph.prototype.showHelp = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.isCustomBlock) {
|
if (this.isCustomBlock) {
|
||||||
comment = this.isGlobal ?
|
def = this.isGlobal ? this.definition
|
||||||
this.definition.comment
|
: this.scriptTarget().getMethod(this.blockSpec);
|
||||||
: this.scriptTarget().getMethod(this.blockSpec).comment;
|
comment = def.comment;
|
||||||
if (comment) {
|
if (comment) {
|
||||||
block = this.fullCopy();
|
block = def.blockInstance();
|
||||||
|
block.refreshDefaults(def);
|
||||||
block.addShadow();
|
block.addShadow();
|
||||||
comment = comment.fullCopy();
|
comment = comment.fullCopy();
|
||||||
comment.contents.parse();
|
comment.contents.parse();
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue