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

Fixes for image editor in micro:bit #9900

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Fixes for image editor in micro:bit #9900

merged 2 commits into from
Mar 4, 2024

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Mar 1, 2024

This is an addendum to my earlier pr #9878 which neglected to fix the palette when it was in the pxt.json of a dependency rather than the top package.

Also adds the ability to configure the image and animation editors to compile/parse different tagged template literals since micro:bit can't use img. To use it, simply add it to the field options on the function defining the field editor like so:

//% bmp.fieldOptions.taggedTemplate="bmp"

it might already be there since this is the same field option we use for configuring the decompiler.

@riknoll riknoll requested review from tballmsft and a team March 1, 2024 23:57
Copy link
Contributor

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

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

👍

@tballmsft
Copy link
Contributor

Thanks, Richard!

@riknoll riknoll merged commit a1cc74f into master Mar 4, 2024
7 checks passed
@riknoll riknoll deleted the dev/riknoll/img-fixes branch March 4, 2024 17:23
riknoll added a commit that referenced this pull request May 8, 2024
* fix compile variants when palette is in dep

* add field editor param for the tagged template
riknoll added a commit that referenced this pull request May 17, 2024
…necraft stable (#10009)

* [stable9.0] Cherry picking crowdin changes over to Calliope's stable branch (#9991)

* [V9] Cherry picking crowdin work over to v9 branch (#9963)

* Upgrade to Crowdin V2 APIs (#9954)

* use crowdin v2 apis

* rename crowdin API

* add projectid setting

* fix test mode

* copy pxt-translations crowdin config

* re-enable crowdin stats (#9962)

* Add restore command and keep translations when updating (#9966) (#9968)

* add restore command and keep translations when updating

* add --test flag

* add parameter to prevent accidental runs

* hide asset name when assetEditor is false (#9878)

* Fixes for image editor in micro:bit (#9900)

* fix compile variants when palette is in dep

* add field editor param for the tagged template

* fix help link in monaco flyout (#10008)
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.

None yet

3 participants