Uploaded image for project: 'Catroid'
  1. Catroid
  2. CATROID-1482

Make Scripts collapseable

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Issues Pool
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: IDE
    • Labels:

      Description

      I as a user would like to have the possibility to collapse my scripts and expand them again. This way I can quickly skip long scripts and have a nice overview of my code.
      I would like to have the possibility to expand/collapse single scripts, but also to expand/collapse all scripts in my script view at once.

       

      Solution:

      Using the Collapse/Expand button or the Collapse/Expand option from the Overflow menu, we can collapse/expand an entire script or only loops/ifs within a script. When a script/loop/if is collapsed, part of the first three bricks will be displayed under the event brick/between the loop/if bricks. If there are less than three bricks in the script/between the loop/if bricks, only two or one will be displayed. The small, displayed part of the bricks and the expand button indicate that the script/loop/if is collapsed.

       

      If you add a new brick/move an existing brick to a collapsed script/loop/if and release it, the brick is appended to the end of the script/loop/if. If the script/loop/if had less than three bricks, you can now see part of the new brick under the script/between the loop/if bricks.

      If you hover over the collapsed script/loop/if with the brick, after a delay an animation will start showing how the script/loop/if is expanded. The animation expands the three (or two or one) bricks from top to bottom. If the script/loop/if contains more than three bricks, the other bricks simply appear. If the brick is moved away during the animation so that it is no longer floating above the script/loop/if, the script/loop/if is collapsed again.

       

      If one of the options from the overflow menu is used, the script/loop/if is expanded. After that it will be collapsed again.

        Attachments

        1. 2.1.png
          2.1.png
          332 kB
        2. 2.2.png
          2.2.png
          327 kB
        3. 2.3.png
          2.3.png
          338 kB
        4. 2.4.png
          2.4.png
          330 kB
        5. 2.5.png
          2.5.png
          257 kB
        6. 2.6.png
          2.6.png
          268 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            AnnaDraxl Anna Draxl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: