kopia lustrzana https://github.com/backface/turtlestitch
removed obsolete code for custom block hover-help
rodzic
1843e29087
commit
b9539918bf
41
byob.js
41
byob.js
|
@ -959,47 +959,6 @@ CustomCommandBlockMorph.prototype.deleteBlockDefinition = function () {
|
|||
);
|
||||
};
|
||||
|
||||
// CustomCommandBlockMorph events:
|
||||
|
||||
// hover help - commented out for now
|
||||
/*
|
||||
|
||||
CustomCommandBlockMorph.prototype.mouseEnter = function () {
|
||||
var comment, help;
|
||||
if (this.isTemplate && this.definition.comment) {
|
||||
comment = this.definition.comment.fullCopy();
|
||||
comment.contents.parse();
|
||||
help = '';
|
||||
comment.contents.lines.forEach(function (line) {
|
||||
help = help + '\n' + line;
|
||||
});
|
||||
this.popUpbubbleHelp(
|
||||
help.substr(1),
|
||||
this.definition.comment.color
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
CustomCommandBlockMorph.prototype.mouseLeave = function () {
|
||||
if (this.isTemplate && this.definition.comment) {
|
||||
this.world().hand.destroyTemporaries();
|
||||
}
|
||||
};
|
||||
|
||||
CustomCommandBlockMorph.prototype.popUpbubbleHelp = function (
|
||||
contents,
|
||||
color
|
||||
) {
|
||||
new SpeechBubbleMorph(
|
||||
contents,
|
||||
color,
|
||||
null,
|
||||
1
|
||||
).popUp(this.world(), this.rightCenter().add(new Point(-8, 0)));
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
// CustomCommandBlockMorph relabelling
|
||||
|
||||
CustomCommandBlockMorph.prototype.relabel = function (alternatives) {
|
||||
|
|
Ładowanie…
Reference in New Issue