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

Sort list watchers properly #18

Open
tjvr opened this issue Nov 6, 2013 · 0 comments
Open

Sort list watchers properly #18

tjvr opened this issue Nov 6, 2013 · 0 comments
Labels

Comments

@tjvr
Copy link
Owner

tjvr commented Nov 6, 2013

List watchers now show up in two places. The one in "lists" is for backward compatibility. The one in "children" allows interspersed ordering with sprites.

Kurt's loading code needs to be adjusted to stack stuff properly.

{
    "objName": "Stage",
    // ...
    "lists": [{
            "listName": "Operations",
            "contents": ["thing",
                "thing",
                // ...
                "thing"],
            "isPersistent": false,
            "x": 5,
            "y": 5,
            "width": 97,
            "height": 181,
            "visible": false
        },
        {
            "listName": "Results",
            "contents": ["Results  F 40 L 40 S 40 G 20 R 40 TS 39 TC 39 CTC 39"],
            "isPersistent": false,
            "x": 8,
            "y": 5,
            "width": 464,
            "height": 117,
            "visible": true
        }],
    // ...
    "currentCostumeIndex": 1,
    "penLayerMD5": "279467d0d49e152706ed66539b577c00.png",
    "tempoBPM": 60,
    "videoAlpha": 0.5,
    "children": [{
            "objName": "Gobo",
            // ...
        },
        {
            "objName": "Cat",
            // ...
        },
        {
            "objName": "Sprite3",
            // ...
        },
        {
            "objName": "Sprite12",
            // ...
        },
        {
            "objName": "Sprite11",
            // ...
        },
        {
            "objName": "Sprite10",
            // ...
        },
        {
            "objName": "Sprite9",
            // ...
        },
        {
            "objName": "Sprite8",
            // ...
        },
        {
            "objName": "Sprite4",
            // ...
        },
        {
            "objName": "Sprite7",
            // ...
        },
        {
            "objName": "Sprite5",
            // ...
        },
        {
            "objName": "Sprite6",
            // ...
        },
        {
            "listName": "Operations",
            "contents": ["thing",
                // ...
                "thing"],
            "isPersistent": false,
            "x": 5,
            "y": 5,
            "width": 97,
            "height": 181,
            "visible": false
        },
        {
            "listName": "Results",
            "contents": ["Results  F 40 L 40 S 40 G 20 R 40 TS 39 TC 39 CTC 39"],
            "isPersistent": false,
            "x": 8,
            "y": 5,
            "width": 464,
            "height": 117,
            "visible": true
        }],
    "info": {
        // ...
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant