Skip to content

Commit e2792dd

Browse files
Merge branch 'main' into timers
2 parents efda422 + f8d8520 commit e2792dd

File tree

7 files changed

+6449
-5970
lines changed

7 files changed

+6449
-5970
lines changed

src/lib/extensions.js

+10
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,16 @@ export default [
570570
isGitHub: true,
571571
notes: "Gallery banner by Dillon",
572572
},
573+
{
574+
name: "Project Interfaces",
575+
description: "Effortlessly create intuitive graphical user interfaces in your projects.",
576+
code: "LordCat0/ProjectInterfaces.js",
577+
banner: "LordCat0/ProjectInterfaces.png",
578+
creator: "LordCat0",
579+
creatorAlias: "Lord cat",
580+
notes: "Gallery banner by Dillon",
581+
isGitHub: true,
582+
},
573583
{
574584
name: "Extra Timers",
575585
description: "Allows for the creation and management of additional timer blocks.",

static/extensions/Anonymous_cat1/updateFile.js

+27-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Description: Edit/Read files dynamically without prompting to reselect it.
44
// By: Anonymous_cat1
55

6-
// Version 1.1.0
6+
// Version 1.2.0
77

88
(function (Scratch) {
99
'use strict';
@@ -101,11 +101,28 @@
101101
defaultValue: 'Foo, Bar, Baz'
102102
}
103103
}
104+
},
105+
{
106+
opcode: "updateFile",
107+
blockType: Scratch.BlockType.COMMAND,
108+
text: "Write content to file from [FORMAT] [CONTENT]",
109+
arguments: {
110+
FORMAT: {
111+
type: Scratch.ArgumentType.STRING,
112+
menu: "writeFormatMenu"
113+
},
114+
CONTENT: {
115+
type: Scratch.ArgumentType.STRING,
116+
defaultValue: "Foo, Bar, Baz"
117+
}
118+
},
119+
hideFromPalette: true,
104120
}
105121
],
106122
menus: {
107123
FormatMenu: {
108-
items: ['Text', 'URI', 'Hex (as array)']
124+
items: ['Text', 'URI', 'Hex (as array)'],
125+
writeFormatMenu: ["Text", "URI/URL"]
109126
}
110127
}
111128
};
@@ -161,6 +178,14 @@ Do you wish to continue?`);
161178
}
162179
}
163180

181+
async updateFile({ FORMAT, CONTENT }) {
182+
if (FORMAT == "URI/URL") {
183+
FORMAT = "URI";
184+
}
185+
186+
await ACatUpdateFile({ FORMAT, CONTENT });
187+
}
188+
164189
async ACatUpdateFile({ FORMAT, CONTENT }) {
165190
if (!this.fileHandle) {
166191
console.warn('Attempted to write to no file');

static/extensions/LordCat0/ProjectInterfaces.js

+426
Large diffs are not rendered by default.

static/extensions/MubiLop/toastnotifs.js

+30-5
Large diffs are not rendered by default.

static/extensions/ObviousAlexC/PenPlus.js

+5,955-5,962
Large diffs are not rendered by default.

static/extensions/pooiod/Box2D.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ but has since deviated to be its own thing. (made with box2D js es6) */
14481448
}
14491449

14501450
definePrismatic(args) {
1451-
var directionRadians = args.DIR - 90 * Math.PI / 180;
1451+
var directionRadians = (90 - args.DIR) * toRad;
14521452
prb2djaxisX = Math.cos(directionRadians);
14531453
prb2djaxisY = Math.sin(directionRadians);
14541454
prb2dju = args.HIGH;
108 KB
Loading

0 commit comments

Comments
 (0)