enable dial menu to work with textual values representable as numbers

pull/89/head
jmoenig 2019-02-04 11:11:43 +01:00
rodzic aa98ed4d50
commit 4951f5cb70
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -41,6 +41,7 @@
* 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
* Blocks: enable piano keyboard menu to work with textual values representable as numbers
* Blocks: enable dial menu to work with textual values representable as numbers
### 2019-02-01
* BYOB: new experimental feature: special multi-line and monospaced input slot types

Wyświetl plik

@ -8511,7 +8511,7 @@ InputSlotMorph.prototype.menuFromDict = function (
dial.action = update;
dial.fillColor = this.parent.color;
dial.setRadius(this.fontSize * 3);
dial.setValue(this.evaluate(), false, true);
dial.setValue(+this.evaluate(), false, true);
menu.addLine();
menu.items.push(dial);
menu.addLine();