Conversation
getSpriteValue to include target selection in sprite export
|
You have to hide the old block and add your changes as a separate new block. You have to do this since you're mutating the block arguments, which will result in broken blocks for old projects using this |
Whoops, sorry. I'm working on that now. |
|
Fixed in commit |
|
The old blocks behaviour can just call the new one for simplicity but with the sprite hardcoded |
…ment for blocks to align with others
Fixed in commit |
| disableMonitor: true, | ||
| opcode: "getSpriteValue2", | ||
| blockType: Scratch.BlockType.REPORTER, | ||
| text: Scratch.translate("sprite [TARGET] [EXPORT]"), |
There was a problem hiding this comment.
the old string probably need to give translator context but this one even more so needs to do that
There was a problem hiding this comment.
Do you want me to resolve this conversation?
There was a problem hiding this comment.
no, that wasn't really what i meant
today: translators just see this
what is [EXPORT]? they have no idea from here. we're adding another completely ambiguous input. you should tell them what [TARGET] and [EXPORT] are. are they an input? are they an image? are they a dropdown? what's in that dropdown? context matters
There was a problem hiding this comment.
for best results email thomas@turbowarp.org to get a quick review once you've addressed that
|
can you disclose to what extent you wrote anything here vs. claude writing everything here? you're not in trouble. it's actually pretty ok at it. but we would like to know |
These changes were made with Google Gemini 3.1 Pro, however all changes were manually tested by me, and I understand how the new code works. Some of the quick fixes were manually made by me. |
|
Just checking in to see if there is anything else I need to adjust here! |
|
Bruh |
|
yeah that's crazy |
What's not crazy is that I finished your requested changes to Messages+ |
|
So why did we delete the repo and close this right after it got an approval? |
Account got deleted. So everything gets closed |
You would think bro wouldn't delete his account just a few hours after getting an approval 💀 |
… export Adds a new target identifier in the "sprite [name/dataURI]" reporter block, to allow one sprite to query other sprites' names or data URIs. The original `getSpriteValue` block is kept and hidden from the palette so existing projects keep working; it now delegates to the new `getSpriteValue2` implementation with the target hardcoded to `_myself_`. Recreated from #2561, which was closed when the original author deleted their account. Original authorship preserved. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a new target identifier in the "sprite [name/dataURI]" reporter block, to allow one sprite to query other sprites' names or data URIs.