Page 1 of 1

Resources for how to edit main menu?

PostPosted: Thu Sep 03, 2015 22:23
by leiget
Hi, I'm new. I was wanting to know if there are any resources for changing the look of the main menu, like how to make "Singleplayer, "Multiplayer", etc. tabs into buttons on the left of the screen, like with Freeminer. I've looked and used search on the dev wiki and didn't find anything. The closest I got was http://dev.minetest.net/formspec.

Re: Resources for how to edit main menu?

PostPosted: Fri Sep 04, 2015 00:16
by benrob0329
The main menu isn't customisable without editing the Lua code in the builtin directory.

Re: Resources for how to edit main menu?

PostPosted: Fri Sep 04, 2015 22:40
by Red2
You would have edit the lua files in /builtin/mainmenu.

Re: Resources for how to edit main menu?

PostPosted: Fri Sep 04, 2015 23:18
by blert2112
See ... /your_minetest_folder/doc/menu_lua_api.txt

Re: Resources for how to edit main menu?

PostPosted: Fri Sep 04, 2015 23:29
by leiget
Okay, thank you guys. I've been looking at the code in the builting directory and also the api documentation, and right now I'm trying to find out sinply move the header picture over to the right a little.

Re: Resources for how to edit main menu?

PostPosted: Sun Sep 06, 2015 20:28
by leiget
Been looking at the code more, and went into the C++ code to look around, and I've just barely started started. I'm trying to customize all of MineTest, just because, and it's been pretty hard finding out how to do simple things like make a menu on the left side of the screen, like in FreeMiner.

I've found that "guiEngine.cpp" has a lot of important stuff, but I'm still not sure how to go about making a button menu on the left side of the screen. It seems that MineTest isn't really made for that, so it looks like I'm going to have to make my own functions, and what not, and try to integrate them into what MineTest already has.

Re: Resources for how to edit main menu?

PostPosted: Sun Sep 06, 2015 21:35
by benrob0329
Well, I'd love to see a customisable menu get added to MT, would you do a pull request if you can figure it out?