Custom-Main-Menu
Custom-Main-Menu copied to clipboard
Buttons and Images moves away when resizing the window.
Hi. At first i need to apologize for my english. I'm green in CMM .
My problem is that when I create a custom menu in a large window, it is nicely arranged, while when I reduce the size of the window, all buttons and graphics change their position. I`ll show you.
And that is mainmenu.json : { "images": { "logo1": { "image" : "textures:batonowa/gui/bmlogo.png", "posX" : -101, "posY" : -30, "width" : 200, "height" : 50, "alignment" : "center" },
"line-d":
{
"image" : "textures:batonowa/gui/line-d.png",
"posX" : -250,
"posY" : 0,
"width" : 84,
"height" : 350,
"alignment" : "top_center"
},
"ryj":
{
"image" : "textures:batonowa/gui/ryj.png",
"posX" : 48,
"posY" : 6,
"width" : 128,
"height" : 71.98,
"alignment" : "top_left"
}
},
"buttons":
{
"singleplayer":
{
"text" : "menu.singleplayer",
"texture" : "textures:batonowa/buttons/buttons75.png",
"posX" : -245,
"posY" : 24,
"width" : 75,
"height" : 20,
"action" :
{
"type" : "openGui",
"gui" : "singleplayer"
}
},
"multiplayer":
{
"text" : "menu.multiplayer",
"texture" : "textures:batonowa/buttons/buttons75.png",
"posX" : -245,
"posY" : 48,
"width" : 75,
"height" : 20,
"action" :
{
"type" : "openGui",
"gui" : "multiplayer"
}
},
"mods":
{
"text" : "fml.menu.mods",
"texture" : "textures:batonowa/buttons/buttons75.png",
"posX" : -245,
"posY" : 72,
"width" : 75,
"height" : 20,
"action" :
{
"type" : "openGui",
"gui" : "mods"
}
},
"options":
{
"text" : "Options",
"texture" : "textures:batonowa/buttons/buttons75.png",
"posX" : -245,
"posY" : 96,
"width" : 75,
"height" : 20,
"action" :
{
"type" : "openGui",
"gui" : "options"
}
},
"quit":
{
"text" : "",
"texture" : "textures:batonowa/buttons/exit25.png",
"posX" : -195,
"posY" : 230,
"width" : 25,
"height" : 20,
"action" :
{
"type" : "quit"
}
},
"language":
{
"text" : "",
"texture" : "textures:batonowa/buttons/lang20.png",
"posX" : -220,
"posY" : 230,
"width" : 20,
"height" : 20,
"action" :
{
"type" : "openGui",
"gui" : "languages"
}
},
"refresh":
{
"text" : "",
"texture" : "textures:batonowa/buttons/refr20.png",
"posX" : -245,
"posY" : 230,
"width" : 20,
"height" : 20,
"action" :
{
"type" : "refresh"
}
}
},
"labels":
{
"copyright":
{
"text" : "Copyright Dablju & Gacek",
"fontSize" : 1,
"posX" : -130,
"posY" : -10,
"color" : -1,
"alignment" : "bottom_right"
}
},
"other":
{
"splash-text":
{
"posX" : 90,
"posY" : 70,
"color" : -256,
"alignment" : "top_center",
"texts" : "file:textures:batonowa/document/spashes.txt"
},
"background":
{
"mode" : "stretch",
"image" : "textures:batonowa/gui/bmbackground.png"
}
}
}
Same problem. Can't find solution. :-/
You can try using this mod: https://www.curseforge.com/minecraft/mc-mods/main-menu-scale But with it, the main menu in full screen will look "too big."
I hope someone knows a different solution.
You can try using this mod: https://www.curseforge.com/minecraft/mc-mods/main-menu-scale But with it, the main menu in full screen will look "too big."
I hope someone knows a different solution.
I hope too. But thanks for the hint.
same issue :(