kopia lustrzana https://github.com/backface/turtlestitch
Update gui.js
rodzic
d7f7efe4b2
commit
c7916ff49c
|
@ -1764,6 +1764,7 @@ IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
// tab bar
|
// tab bar
|
||||||
tabBar.tabTo = function (tabString) {
|
tabBar.tabTo = function (tabString) {
|
||||||
var active;
|
var active;
|
||||||
|
if (myself.currentTab === tabString) {return; }
|
||||||
myself.world().hand.destroyTemporaries();
|
myself.world().hand.destroyTemporaries();
|
||||||
myself.currentTab = tabString;
|
myself.currentTab = tabString;
|
||||||
this.children.forEach(each => {
|
this.children.forEach(each => {
|
||||||
|
@ -1917,7 +1918,7 @@ IDE_Morph.prototype.createSpriteEditor = function () {
|
||||||
this.add(this.spriteEditor);
|
this.add(this.spriteEditor);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.spriteEditor.contents.mouseEnterDragging = (morph) => {
|
this.spriteEditor.mouseEnterDragging = (morph) => {
|
||||||
if (morph instanceof BlockMorph) {
|
if (morph instanceof BlockMorph) {
|
||||||
this.spriteBar.tabBar.tabTo('scripts');
|
this.spriteBar.tabBar.tabTo('scripts');
|
||||||
} else if (morph instanceof CostumeIconMorph) {
|
} else if (morph instanceof CostumeIconMorph) {
|
||||||
|
@ -1926,6 +1927,9 @@ IDE_Morph.prototype.createSpriteEditor = function () {
|
||||||
this.spriteBar.tabBar.tabTo('sounds');
|
this.spriteBar.tabBar.tabTo('sounds');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.spriteEditor.contents.mouseEnterDragging =
|
||||||
|
this.spriteEditor.mouseEnterDragging;
|
||||||
};
|
};
|
||||||
|
|
||||||
IDE_Morph.prototype.createCorralBar = function () {
|
IDE_Morph.prototype.createCorralBar = function () {
|
||||||
|
|
Ładowanie…
Reference in New Issue