mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-01 00:50:24 -04:00
fix: update GitHub links with /scratchfoundation/
This commit is contained in:
parent
613e5cc823
commit
802d211f95
10 changed files with 26 additions and 27 deletions
src
blocks
extensions
serialization
|
@ -250,7 +250,7 @@ class Scratch3LooksBlocks {
|
|||
|
||||
// Non-integers should be rounded to 2 decimal places (no more, no less), unless they're small enough that
|
||||
// rounding would display them as 0.00. This matches 2.0's behavior:
|
||||
// https://github.com/LLK/scratch-flash/blob/2e4a402ceb205a042887f54b26eebe1c2e6da6c0/src/scratch/ScratchSprite.as#L579-L585
|
||||
// https://github.com/scratchfoundation/scratch-flash/blob/2e4a402ceb205a042887f54b26eebe1c2e6da6c0/src/scratch/ScratchSprite.as#L579-L585
|
||||
if (typeof text === 'number' &&
|
||||
Math.abs(text) >= 0.01 && text % 1 !== 0) {
|
||||
text = text.toFixed(2);
|
||||
|
|
|
@ -15,7 +15,7 @@ const blockIconURI = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYA
|
|||
|
||||
/**
|
||||
* Enum for micro:bit BLE command protocol.
|
||||
* https://github.com/LLK/scratch-microbit-firmware/blob/master/protocol.md
|
||||
* https://github.com/scratchfoundation/scratch-microbit-firmware/blob/master/protocol.md
|
||||
* @readonly
|
||||
* @enum {number}
|
||||
*/
|
||||
|
@ -46,7 +46,7 @@ const BLEDataStoppedError = 'micro:bit extension stopped receiving data';
|
|||
|
||||
/**
|
||||
* Enum for micro:bit protocol.
|
||||
* https://github.com/LLK/scratch-microbit-firmware/blob/master/protocol.md
|
||||
* https://github.com/scratchfoundation/scratch-microbit-firmware/blob/master/protocol.md
|
||||
* @readonly
|
||||
* @enum {string}
|
||||
*/
|
||||
|
|
|
@ -198,7 +198,7 @@ class Scratch3Text2SpeechBlocks {
|
|||
*
|
||||
* SCRATCH LOCALE
|
||||
* Set by the editor, and used to store the language state in the project.
|
||||
* Listed in l10n: https://github.com/LLK/scratch-l10n/blob/master/src/supported-locales.js
|
||||
* Listed in l10n: https://github.com/scratchfoundation/scratch-l10n/blob/master/src/supported-locales.js
|
||||
* SUPPORTED LOCALE
|
||||
* A Scratch locale that has a corresponding extension locale.
|
||||
* EXTENSION LOCALE
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
* Keep this up-to-date as 3.0 blocks are renamed, changed, etc.
|
||||
* Originally this was generated largely by a hand-guided scripting process.
|
||||
* The relevant data lives here:
|
||||
* https://github.com/LLK/scratch-flash/blob/master/src/Specs.as
|
||||
* https://github.com/scratchfoundation/scratch-flash/blob/master/src/Specs.as
|
||||
* (for the old opcode and argument order).
|
||||
* and here:
|
||||
* https://github.com/LLK/scratch-blocks/tree/develop/blocks_vertical
|
||||
* https://github.com/scratchfoundation/scratch-blocks/tree/develop/blocks_vertical
|
||||
* (for the new opcodes and argument names).
|
||||
* and here:
|
||||
* https://github.com/LLK/scratch-blocks/blob/develop/tests/
|
||||
* https://github.com/scratchfoundation/scratch-blocks/blob/develop/tests/
|
||||
* (for the shadow blocks created for each block).
|
||||
* I started with the `commands` array in Specs.as, and discarded irrelevant
|
||||
* properties. By hand, I matched the opcode name to the 3.0 opcode.
|
||||
|
|
|
@ -351,16 +351,16 @@ const serializeCostume = function (costume) {
|
|||
|
||||
obj.bitmapResolution = costumeToSerialize.bitmapResolution;
|
||||
obj.dataFormat = costumeToSerialize.dataFormat.toLowerCase();
|
||||
|
||||
|
||||
obj.assetId = costumeToSerialize.assetId;
|
||||
|
||||
|
||||
// serialize this property with the name 'md5ext' because that's
|
||||
// what it's actually referring to. TODO runtime objects need to be
|
||||
// updated to actually refer to this as 'md5ext' instead of 'md5'
|
||||
// but that change should be made carefully since it is very
|
||||
// pervasive
|
||||
obj.md5ext = costumeToSerialize.md5;
|
||||
|
||||
|
||||
obj.rotationCenterX = costumeToSerialize.rotationCenterX;
|
||||
obj.rotationCenterY = costumeToSerialize.rotationCenterY;
|
||||
|
||||
|
@ -375,7 +375,7 @@ const serializeCostume = function (costume) {
|
|||
const serializeSound = function (sound) {
|
||||
const obj = Object.create(null);
|
||||
obj.name = sound.name;
|
||||
|
||||
|
||||
const soundToSerialize = sound.broken || sound;
|
||||
|
||||
obj.assetId = soundToSerialize.assetId;
|
||||
|
@ -1115,7 +1115,7 @@ const deserializeMonitor = function (monitorData, runtime, targets, extensions)
|
|||
// This will be undefined for extension blocks
|
||||
const monitorBlockInfo = runtime.monitorBlockInfo[monitorData.opcode];
|
||||
|
||||
// Due to a bug (see https://github.com/LLK/scratch-vm/pull/2322), renamed list monitors may have been serialized
|
||||
// Due to a bug (see https://github.com/scratchfoundation/scratch-vm/pull/2322), renamed list monitors may have been serialized
|
||||
// with an outdated/incorrect LIST parameter. Fix it up to use the current name of the actual corresponding list.
|
||||
if (monitorData.opcode === 'data_listcontents') {
|
||||
const listTarget = monitorData.targetId ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue