reloading workspace options

15 views
Skip to first unread message

Florian Wörister

unread,
Jun 12, 2024, 11:22:20 AMJun 12
to Blockly

Hello,

I am currently developing a programming environment based on the Blockly library. At the moment, I am trying to add a sound toggle that allows me to mute and unmute the Blockly sound effects.

What is the best way to update the options object of the workspace without re-injecting the entire workspace?

I would appreciate any hints or suggestions on this issue.

Best regards, Florian

Aaron Dodson

unread,
Jun 12, 2024, 12:24:53 PMJun 12
to Blockly
You should be able to just call workspace.getAudioManager().setMuted(true);
Reply all
Reply to author
Forward
0 new messages