We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f1bc7b commit 3236b75Copy full SHA for 3236b75
features/bitmap-default/data.json
@@ -0,0 +1,12 @@
1
+{
2
+ "title": "Default to Bitmap",
3
+ "description": "Automatically switches to bitmap mode in the costume editor when opened.",
4
+ "credits": [
5
+ { "username": "MaterArc", "url": "https://scratch.mit.edu/users/MaterArc/" }
6
+ ],
7
+ "type": ["Editor"],
8
+ "tags": ["New", "Featured"],
9
+ "dynamic": true,
10
+ "scripts": [{ "file": "script.js", "runOn": "/editor/*" }]
11
+ }
12
+
features/bitmap-default/script.js
@@ -0,0 +1,8 @@
+export default async function ({ feature, console }) {
+ ScratchTools.waitForElements(".paint-editor_bitmap-button_OEHDO", (bitmapButton) => {
+ if (feature.self.enabled) {
+ bitmapButton.click();
+ });
0 commit comments