Skip to content

Instantly share code, notes, and snippets.

@jadar
Last active August 29, 2015 14:01
Show Gist options
  • Save jadar/05f1e3ff4ad17d9236d1 to your computer and use it in GitHub Desktop.
Save jadar/05f1e3ff4ad17d9236d1 to your computer and use it in GitHub Desktop.
Heisenui json spec
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
}
@N0odlez
Copy link

N0odlez commented May 17, 2014

Is subview in subview correct? or is that a mistake?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment