mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Add UI events.
This commit is contained in:
parent
b4218217c2
commit
db7a787778
5 changed files with 69 additions and 0 deletions
|
@ -105,6 +105,8 @@ Blockly.Warning.prototype.setVisible = function(visible) {
|
|||
// No change.
|
||||
return;
|
||||
}
|
||||
Blockly.Events.fire(
|
||||
new Blockly.Events.Ui(this.block_, 'warningOpen', !visible, visible));
|
||||
if (visible) {
|
||||
// Create the bubble to display all warnings.
|
||||
var paragraph = Blockly.Warning.textToDom_(this.getText());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue