support default values in multi-line input slots inside custom blocks

pull/89/head
jmoenig 2019-02-04 09:56:22 +01:00
rodzic 85c6a1ed38
commit 96660cf775
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -39,6 +39,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 * BYOB: identify multi-line input slots by the pilcrow symbol in the slot editor
* BYOB: support default values in multi-line input slots inside custom blocks
### 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

Wyświetl plik

@ -3337,7 +3337,10 @@ InputSlotDialogMorph.prototype.createSlotTypeButtons = function () {
defLabel.setColor(new Color(255, 255, 255)); defLabel.setColor(new Color(255, 255, 255));
defLabel.refresh = function () { defLabel.refresh = function () {
if (myself.isExpanded && contains( if (myself.isExpanded && contains(
['%s', '%n', '%txt', '%anyUE', '%b', '%boolUE'], [
'%s', '%n', '%txt', '%anyUE', '%b', '%boolUE',
'%mlt', '%code'
],
myself.fragment.type myself.fragment.type
)) { )) {
defLabel.show(); defLabel.show();
@ -3355,7 +3358,7 @@ InputSlotDialogMorph.prototype.createSlotTypeButtons = function () {
defInput.setWidth(50); defInput.setWidth(50);
defInput.refresh = function () { defInput.refresh = function () {
if (myself.isExpanded && contains( if (myself.isExpanded && contains(
['%s', '%n', '%txt', '%anyUE'], ['%s', '%n', '%txt', '%anyUE', '%mlt', '%code'],
myself.fragment.type myself.fragment.type
)) { )) {
defInput.show(); defInput.show();