Skip to content

HeisenUI JSON Spec #4

@jadar

Description

@jadar
HeisenUI JSON Spec
Comments are #. Note that these comments are not valid in actual JSON spec.
Each JSON object here should correspond to an actual Java object.

{ 
    'identifier': '',
    'controllerClass': 'com.heisenbugdev.example.gui.ExampleViewController'
    ' this is a list of all the elements in this view. Button, list, tab, etc views are the elements.': 'comment'
    'view': {

        'identifier': 'view'
        'frame': HeisenFrame
        'texture': '/assets/MODID/gui/background.png'
        'subviews': [
            {
                'identifier': 'MyLabel',
                'type': 'com.heisenbugdev.heisenui.gui.CLASS',
                'frame': 'HeisenFrame',
                'origin': 0-4, 
                'hidden': false,
                'texture': '/assets/MODID/gui/background.png'

                'attributes': {
                    'text': {
                        'content': "Label"
                        'size': 12
                    }
                }

                'subviews': []
            }
        ]
    },
    'outlets': [
        {
            'elementIdentifier': 'MyLabel',
            'identifier': 'MyLabelOutlet'
        }
    ],
    'targets': [
        {
            'elementIdentifier': 'MyLabel',
            'identifier': 'MyLabelTarget',
            'action': 'mouseRelease'
        }
    ],
    'order': 0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions