kopia lustrzana https://github.com/backface/turtlestitch
deactivate custom category creation via menu for now
rodzic
3091996178
commit
4c0260d5ff
|
@ -10,7 +10,7 @@
|
|||
<script src="src/widgets.js?version=2021-17-09"></script>
|
||||
<script src="src/blocks.js?version=2022-01-30"></script>
|
||||
<script src="src/threads.js?version=2022-01-31"></script>
|
||||
<script src="src/objects.js?version=2022-02-07"></script>
|
||||
<script src="src/objects.js?version=2023-03-01"></script>
|
||||
<script src="src/scenes.js?version=2021-11-24"></script>
|
||||
<script src="src/gui.js?version=2022-02-08"></script>
|
||||
<script src="src/paint.js?version=2021-07-05"></script>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION="2.7.14"
|
||||
VERSION="2.7.15"
|
||||
|
||||
// get debug mode
|
||||
url = new URL(window.location.href);
|
||||
|
|
|
@ -3374,6 +3374,7 @@ StageMorph.prototype.clearStageBackground = function() {
|
|||
myself.hasChangedMedia = true;
|
||||
};
|
||||
|
||||
|
||||
StageMorph.prototype.loadCameraSnapshot = function() {
|
||||
var myself = this;
|
||||
var ide = this.parentThatIsA(IDE_Morph);
|
||||
|
@ -3391,3 +3392,32 @@ StageMorph.prototype.loadCameraSnapshot = function() {
|
|||
camDialog.key = 'camera';
|
||||
camDialog.popUp(this.world());
|
||||
};
|
||||
|
||||
|
||||
// overwrite palette and menu (to hide make new categories)
|
||||
SpriteMorph.prototype.palette = function (category) {
|
||||
if (!this.paletteCache[category]) {
|
||||
this.paletteCache[category] = this.freshPalette(category);
|
||||
this.paletteCache[category].userMenu = function () {
|
||||
var menu = new MenuMorph();
|
||||
menu.addPair(
|
||||
[
|
||||
new SymbolMorph(
|
||||
'magnifyingGlass',
|
||||
MorphicPreferences.menuFontSize
|
||||
),
|
||||
localize('find blocks') + '...'
|
||||
],
|
||||
() => myself.searchBlocks(),
|
||||
'^F'
|
||||
);
|
||||
menu.addItem(
|
||||
'hide blocks...',
|
||||
() => new BlockVisibilityDialogMorph(myself).popUp(myself.world())
|
||||
);
|
||||
return menu;
|
||||
};
|
||||
|
||||
}
|
||||
return this.paletteCache[category];
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue