Page 1 of 1
Menu script?

Posted:
Thu Aug 25, 2016 16:29
by azekill_DIABLO
are there example of menu script? it looks interesting.
Re: Menu script?

Posted:
Thu Aug 25, 2016 16:35
by rubenwardy
Re: Menu script?

Posted:
Fri Aug 26, 2016 08:36
by azekill_DIABLO
yeah, but in the the settings of minetest there is "path for mainmenu script". what is this?
Re: Menu script?

Posted:
Fri Sep 09, 2016 12:41
by azekill_DIABLO
someone?
Re: Menu script?

Posted:
Fri Sep 09, 2016 19:03
by taikedz
Re: Menu script?

Posted:
Sat Sep 10, 2016 10:13
by azekill_DIABLO
yeah that. how to use it?
Re: Menu script?

Posted:
Sat Sep 10, 2016 11:07
by Krock
https://github.com/minetest/minetest/bl ... it.lua#L42Copy and paste the directory builtin\mainmenu to another location and make the minetest.conf setting point on the init.lua file inside. Then you can change the mainmenu scripts at the new location. Quite useless setting IMO.
Re: Menu script?

Posted:
Sat Sep 10, 2016 17:05
by azekill_DIABLO
that all? it's useless!
Re: Menu script?

Posted:
Tue Sep 13, 2016 13:05
by taikedz
I suspect it's for developers.
So you can more easily switch between menu sets when doing dev work, which is better than swapping folders in and out and squashing files with unsaved buffers.
Re: Menu script?

Posted:
Tue Sep 13, 2016 15:52
by azekill_DIABLO
probably. i thought it would make us able to add things like music to the menu.
Re: Menu script?

Posted:
Tue Sep 13, 2016 16:02
by taikedz
I haven't tested but maybe menu sound would indeed be possible - use a stereo track to make it play regardless of distances etc in-game so why not in the menu....
http://dev.minetest.net/minetest.sound_play
Re: Menu script?

Posted:
Tue Sep 13, 2016 17:18
by twoelk
simply create a folder called minetest/sounds in the root directory of minetest and add a file called main_menu.ogg.
Now open the main menu and enjoy the music. This has been possible for quite a while now.
Re: Menu script?

Posted:
Wed Sep 14, 2016 09:45
by azekill_DIABLO
and why no one told me? i'm waiting for this since a lot of time.
Re: Menu script?

Posted:
Wed Sep 14, 2016 15:42
by azekill_DIABLO
Damn it works!!!