Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset Manager: Add "Asset Manager" extension. #891

Merged
merged 30 commits into from
Dec 21, 2023

Conversation

LilyMakesThings
Copy link
Contributor

@LilyMakesThings LilyMakesThings commented Aug 15, 2023

Extension dedicated solely to editing assets within the project, with some similar blocks on the side.

I received explicit permission from TheShovel to make and pull request this, and we both agreed it would be better to have this as a separate extension from ShovelUtils. (Also much easier than to merge this with ShovelUtils).

Feedback is appreciated.

@CubesterYT
Copy link
Collaborator

Let's gooooo!

@yuri-kiss
Copy link
Contributor

simple anti-cheat?

@echoless3484
Copy link

please add this in 10 minutes

@@ -0,0 +1,630 @@
// Name: Asset Manager
// ID: lmsAssets
// Description: Add, remove, and get data from sprites, costumes and sounds.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick, but the oxford commas in the description are inconsistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn you're right

spriteNames.push({
text: targetName,
// We, rather unfortunately, have to rely on Target IDs. This is a terrible idea.
value: targetId,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what reason?

pretty sure those are entirely randomly generated each page load

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They do, that's a very good point. The problem comes from one of the blocks allowing you to rename a sprite. If the sprite changes names, then the block would suddenly not work so long as it used just the sprite's name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the same problem as List Tools, except here it's much more dire because one of the blocks from the extension can literally break itself if it used names as opposed to IDs

@GarboMuffin
Copy link
Member

i don't know why this was stalled anymore so it probably wasn't important

@GarboMuffin GarboMuffin merged commit 158bc29 into TurboWarp:master Dec 21, 2023
3 checks passed
@LilyMakesThings LilyMakesThings deleted the AssetManager branch January 11, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants