Custom-Main-Menu
Custom-Main-Menu copied to clipboard
Missing texture for buttons 1.12.2
So I have been working on this for a while and i was able to user all my other custom textures but for buttons for some reason it doesn't seem able to load the textures. I have a screen shot of my file paths and my code. I have linked said screenshot below. https://imgur.com/a/rvxyl9u
Here is my code for the single player button
"buttons": { "Singleplayer": { "text" : "menu.singleplayer", "texture" : "texture:menu/buttonsw.png", "posX" : -100, "posY" : 48, "width" : 200, "height" : 20, "imageWidth" : 200, "imageHight" : 40, "action" : { "type" : "openGui", "gui" : "singleplayer" } },
My file path is definitely correct because other files work for title and even my custom Splash text is working. But the buttons will not.
I have corrected my typo on image height but the issue persists
"buttons":
{
"Singleplayer":
{
try changing to lowercase,
"buttons":
{
"singleplayer":
{
Same result, as i recall from my past experience with json files, that line is simply a title for the code block below it. in theory it could be written as anything you want it to be.
always a good idea to make it uniform to cut out any potential errors. add the .json file to the post and might be best to load the image into an editor and 'Save As` and generate a new file with a new name, then try that file without the old image in the directory, I have had that happen before and the above fixed it.