0% found this document useful (0 votes)
6 views1 page

Custom Button Creation Guide

To create custom buttons, you need 20x20 button textures and a corresponding JSON file in the UI folder for each button. The JSON file should be named after the texture and contain specific code to ensure proper display. While other button sizes are possible, it's advised to stick with the standard size to avoid resolution issues.

Uploaded by

nyah7589
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Custom Button Creation Guide

To create custom buttons, you need 20x20 button textures and a corresponding JSON file in the UI folder for each button. The JSON file should be named after the texture and contain specific code to ensure proper display. While other button sizes are possible, it's advised to stick with the standard size to avoid resolution issues.

Uploaded by

nyah7589
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Read me

For making the custom buttons you need 20x20 button textures, but in order for the
textures to be displayed correctly, you need to create a json in the UI folder.
Each button needs its own file. for example if the button texture name is:
button_bordreless_light.png then the json file needs name:
button_bordreless_light.json .And in this file should be this code:
{
"nineslice_size": 5,
"base_size": [
20,
20
]
}
You can also make buttons of any other size, but when changing the resolution for
the correct display, you need to change the code. I don't recommend you do this.

Thx for using my texture pack, good luck!

Author: Markied

You might also like