Skip to content

Comments

Add list-setter shadow blocks at top of Lists flyout#318

Merged
tracygardner merged 1 commit intomainfrom
codex/add-shadow-blocks-to-lists-category
Feb 23, 2026
Merged

Add list-setter shadow blocks at top of Lists flyout#318
tracygardner merged 1 commit intomainfrom
codex/add-shadow-blocks-to-lists-category

Conversation

@tracygardner
Copy link
Contributor

Summary

  • switched the Lists toolbox category to use a custom flyout callback (custom: "LIST")
  • added four set [list] to ... blocks at the top of the Lists flyout:
    • set list to empty list
    • set list to a list of 2 numbers (shadowed)
    • set list to a list of 2 text values (shadowed)
    • set list to a list of 2 colours (shadowed)
  • preserved existing standard list blocks below these new entries

Implementation details

  • registered a new LIST toolbox category callback in main/blocklyinit.js
  • built flyout XML programmatically so list setter blocks include the required nested list shadows
  • list variable names default to incremented listN style based on existing variables in the workspace

Files changed

  • toolbox.js
  • main/blocklyinit.js

Codex Task

@tracygardner tracygardner merged commit 1d39ec8 into main Feb 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant