kopia lustrzana https://github.com/backface/turtlestitch
identify multi-line input slots by the pilcrow symbol in the slot editor
rodzic
d92b37c629
commit
85c6a1ed38
|
@ -38,6 +38,7 @@
|
||||||
|
|
||||||
### 2019-02-04
|
### 2019-02-04
|
||||||
* BYOB: new experimental feature: special context-aware drop-down menus for custom blocks
|
* BYOB: new experimental feature: special context-aware drop-down menus for custom blocks
|
||||||
|
* BYOB: identify multi-line input slots by the pilcrow symbol in the slot editor
|
||||||
|
|
||||||
### 2019-02-01
|
### 2019-02-01
|
||||||
* BYOB: new experimental feature: special multi-line and monospaced input slot types
|
* BYOB: new experimental feature: special multi-line and monospaced input slot types
|
||||||
|
|
|
@ -2604,11 +2604,15 @@ BlockLabelFragment.prototype.defTemplateSpecFragment = function () {
|
||||||
} else if (this.defaultValue) {
|
} else if (this.defaultValue) {
|
||||||
if (this.type === '%n') {
|
if (this.type === '%n') {
|
||||||
suff = ' # = ' + this.defaultValue.toString();
|
suff = ' # = ' + this.defaultValue.toString();
|
||||||
|
} else if (contains(['%mlt', '%code'], this.type)) {
|
||||||
|
suff = ' \u00B6 ' + this.defaultValue.toString(); // pilcrow
|
||||||
} else { // 'any' or 'text'
|
} else { // 'any' or 'text'
|
||||||
suff = ' = ' + this.defaultValue.toString();
|
suff = ' = ' + this.defaultValue.toString();
|
||||||
}
|
}
|
||||||
} else if (this.type === '%n') {
|
} else if (this.type === '%n') {
|
||||||
suff = ' #';
|
suff = ' #';
|
||||||
|
} else if (contains(['%mlt', '%code'], this.type)) {
|
||||||
|
suff = ' \u00B6'; // pilcrow
|
||||||
}
|
}
|
||||||
return this.labelString + suff;
|
return this.labelString + suff;
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue