Merging changes from Snap 4.0.10

pull/29/head
Michael Aschauer 2017-01-25 16:43:05 +01:00
rodzic 44375cec74
commit bc0a90f788
1 zmienionych plików z 9 dodań i 7 usunięć

Wyświetl plik

@ -1513,13 +1513,15 @@ IDE_Morph.prototype.projectMenu = function () {
); );
menu.addItem( menu.addItem(
'Libraries...', 'Libraries...',
createMediaMenu( function() {
'libraries', myself.getURL(
function loadLib(file, name) { myself.resourceURL('libraries', 'LIBRARIES'),
var url = myself.resourceURL('libraries', file); function (txt) {
myself.droppedText(myself.getURL(url), name); var libraries = myself.parseResourceFile(txt);
} new LibraryImportDialogMorph(myself, libraries).popUp();
), }
);
},
'Select categories of additional blocks to add to this project.' 'Select categories of additional blocks to add to this project.'
); );
menu.popup(world, pos); menu.popup(world, pos);