Skip to content

Custom block libraries, 2.0 #60

@towerofnix

Description

@towerofnix

See also #52 for the original and main ideas, and #55 for the original PR plus some Real(tm)-user feedback.

Input is wanted! (ping @heyitsmeuralex, @bobbybee, @everyone)

There's probably been some good discussion by Jens and friends on the Snap! repository.


  • Give custom block libraries their own colors (user-specifiable).
  • Separate custom block libraries into different "subcategories", like extensions.
  • Make library block creation simpler.
    • An "add to library" button in the custom block dialog?
      • Could be a dropdown containing a list of library names, and a "create new library..." option.
  • Let two sprites use a given library, and synchronize libraries between the sprites that are using them.
    • Need to consider "live editing" library custom blocks; if two sprites use a library block, then the code for that block should update in both sprites, as soon as the user modifies (e.g. drops a block) the actual custom block in either of the sprites using the custom block.
  • What about libraries that depend on other libraries?
    • E.g. a "add item to lists [str]" library, which uses a "string utilities" library's "split string" block to split "[str]" by commas
  • Metadata can be stored in Scratch-based project comments (the "add comment" button), if necessary/convenient.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions