Joe Clinton

Results 182 comments of Joe Clinton

Btw, anyone who does review please actually do some tests, to confirm that it works. Due to the way the code works there are many opportunities for bugs, and there...

> Could this also apply to sprites? The code for adding sounds and costumes are similar, but adding sprites uses an entirely different method. It would be alot of work....

> The dialog doesn't occur when dragging an asset from one sprite to another. This is probably Scratch just being useless and duplicating their code. I wrapped the base vm...

> When a costume called "costume1" exists, clicking on the "New Costume" button does this: ![An asset named costume1.undefined already exists.](https://private-user-images.githubusercontent.com/130385691/308239033-3c4e8f0d-57c4-4f42-b4f7-46b8cff5adc4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkwNTEzNDcsIm5iZiI6MTcwOTA1MTA0NywicGF0aCI6Ii8xMzAzODU2OTEvMzA4MjM5MDMzLTNjNGU4ZjBkLTU3YzQtNGY0Mi1iNGY3LTQ2YjhjZmY1YWRjNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyN1QxNjI0MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jY2MzMWE3YzhmYTU5ZjBjMTMyYzU1NjM3MzBhOGNmOTk2NTdiYjc2ZGJkZDYzNDBiZWU0YjhmNTBkOWY1ZTIwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.b2VfmG6KXpOhrZI1LV4S7G6rfR77qc4yEomE9fLWp5Q) This also happens when dragging from the backpack. Basically...

> > This also happens when dragging from the backpack. Basically I have code which will look for the assets extension and concatenate that to the file name. There must...

> When choosing to Import and Replace, the replaced costume/sound isn't selected, but it is when selecting Import and Rename. Could it be selected there as well? Yes. I can...

> Was [48d23c6](https://github.com/ScratchAddons/ScratchAddons/commit/48d23c618639eb47b0967dc79b7be7b06484c935) supposed to do [#7232 (comment)](https://github.com/ScratchAddons/ScratchAddons/pull/7232#issuecomment-1966889173)? If so, it doesn't seem to do anything. It sets the costume just doesn't update the costumeTab state so you won't see...

There's absolutely no way i'm doing this for sprites too. Way too much work. For now just deleting the old sprite then importing the new one, should be the go...

> The only thing I can find missing is full compatibility with the folders addon. I made it a bit better, but the folders addon traps the RenderedTarget.addCostume/addSound that vm.addCostume/addSound...

@GarboMuffin ```js // finding the right item is made complicated by the folders addon const selectorItemsNumbers = tab.querySelectorAll("[class*='sprite-selector-item_number_']"); for (const selectorItemNumber of selectorItemsNumbers) { const index = +selectorItemNumber.textContent - 1;...