Skip to content

Collapse/expand blocks for "advanced" settings ($200 bounty) #288

@manuq

Description

@manuq

What Happened

As we improve the blocks, more settings are being appended to them. These are usually left with the defaults and intended for advanced usage. For example:
Captura desde 2024-10-23 13-40-44

Proposal: allow blocks to expand/collapse to hide the advanced settings. Blocks should be collapsed by default.

Here is how Microsoft MakeCode Arcade does it:
Captura desde 2024-10-23 13-32-43
Captura desde 2024-10-23 13-32-57

Implementation: there should be a (+) button at the end of collapsed blocks, and a (-) button at the end of expanded blocks. The format of the block label template should be enhaced to define where the cut should happen. Maybe with a | character? So the label template of the sound block above would look like:

play the sound {name: STRING} | with volume {db: FLOAT} dB and pitch scale {pitch: FLOAT}

Pay attention to the | that is separating how it should look collapsed play the sound {name: STRING} and the advanced stuff (volume and pitch scale settings).

How to Reproduce

N/A this is a feature proposal.

Block Coding Plugin Version

No response

Godot Engine Version

No response

Operating System

No response

Logs or command-line output

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions