kopia lustrzana https://github.com/backface/turtlestitch
support exporting text and numbers from result bubbles
rodzic
77160ebee9
commit
b500fbb557
|
@ -3,9 +3,10 @@
|
|||
## in development:
|
||||
|
||||
* **New Features:**
|
||||
* support deleting and inserting individual variadic slots, script vars & ring params
|
||||
* support dragging blocks, costumes and sounds out from result bubbles, and from speech balloons and variable watchers when in edit mode
|
||||
* support exporting costumes and sounds from result bubbles, and from speech balloons and variable watchers when in edit mode
|
||||
* support deleting and inserting individual variadic slots, script vars & ring params
|
||||
* support exporting text and numbers from result bubbles
|
||||
* **Notable Changes:**
|
||||
* **Notable Fixes:**
|
||||
* fixed layout for scrolling custom categories, thanks, Eckart, for the bug report!
|
||||
|
@ -21,6 +22,7 @@
|
|||
* blocks: support exporting sounds from result bubbles
|
||||
* objects: support exporting sounds and costumes from speech balloons in edit mode
|
||||
* objects: support exporting sounds and costumes from variable watchers in edit mode
|
||||
* blocks: support exporting numbers and text from result bubbles
|
||||
|
||||
### 2022-01-27
|
||||
* blocks, gui: support dragging costumes and sounds out from result bubbles
|
||||
|
|
|
@ -2372,6 +2372,21 @@ SyntaxElementMorph.prototype.showBubble = function (value, exportPic, target) {
|
|||
txt,
|
||||
this.fontSize
|
||||
);
|
||||
|
||||
// support exporting text / numbers directly from result bubbles:
|
||||
morphToShow.userMenu = function () {
|
||||
var menu = new MenuMorph(this);
|
||||
menu.addItem(
|
||||
'export',
|
||||
() => ide.saveFileAs(
|
||||
value,
|
||||
'text/plain;charset=utf-8',
|
||||
localize('data')
|
||||
)
|
||||
);
|
||||
return menu;
|
||||
};
|
||||
|
||||
} else if (value === null) {
|
||||
morphToShow = new TextMorph(
|
||||
'',
|
||||
|
@ -2383,9 +2398,10 @@ SyntaxElementMorph.prototype.showBubble = function (value, exportPic, target) {
|
|||
this.fontSize
|
||||
);
|
||||
} else if (value.toString) {
|
||||
morphToShow = new TextMorph(
|
||||
return this.showBubble(
|
||||
value.toString(),
|
||||
this.fontSize
|
||||
exportPic,
|
||||
target
|
||||
);
|
||||
}
|
||||
if (ide && (ide.currentSprite !== target)) {
|
||||
|
|
Ładowanie…
Reference in New Issue