Custom-Main-Menu icon indicating copy to clipboard operation
Custom-Main-Menu copied to clipboard

Missing texture for buttons 1.12.2

Open Hermsmegerms opened this issue 4 years ago • 4 comments

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.

Hermsmegerms avatar Mar 13 '20 18:03 Hermsmegerms

I have corrected my typo on image height but the issue persists

Hermsmegerms avatar Mar 13 '20 18:03 Hermsmegerms

"buttons":
{
"Singleplayer":
{

try changing to lowercase,

"buttons":
{
"singleplayer":
{

ROMVoid95 avatar Mar 13 '20 19:03 ROMVoid95

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.

Hermsmegerms avatar Mar 13 '20 20:03 Hermsmegerms

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.

ROMVoid95 avatar Mar 14 '20 03:03 ROMVoid95