Skip to content

Instantly share code, notes, and snippets.

@JTK222
Created July 5, 2019 23:58
Show Gist options
  • Save JTK222/42ba22a525ea62089744d764771ce1a6 to your computer and use it in GitHub Desktop.
Save JTK222/42ba22a525ea62089744d764771ce1a6 to your computer and use it in GitHub Desktop.
This is an example JSON file for a data driven GUI Render Library
{
"width": 24,
"height" : 12,
"textures": {
"default" : {
"location": "mimasu:base/switches",
"width": 48,
"height": 24
}
},
"overrides" : {
"default": {
"texture": "default",
"u": 0,
"v": 0
},
"hovered": {
"false": { },
"true": {
"offset_u" : 24
}
},
"active": {
"false": { },
"true": {
"offset_v" : 12
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment