Mainmenu-mod / selectable by parameter

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Mainmenu-mod / selectable by parameter

by hajo » Thu Dec 15, 2016 10:17

Some people said that the mainmenu could use some improvement,
so it would be good if mods could be written for it.

In minetest.conf, there is a setting "main_menu_script =",
but that requires an absolute path, as in
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
E:\temp\minetest-0.4.14_8a7dc83\builtin\mainmenu\init.lua

It looks like builtin/init.lua is calling the mainmenu, so how
to specify a path relative to the minetest-directory ?
This doesn't work:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
.\builtin\mainmenu\init.lua


So, I could specify an alternative for the mainmenu - init.lua,
but I would prefer to put a modified menu into the mods-directory.

Also, it would be nice to be able to select the script to launch
when minetest gets started with a commandline-parameter.

BTW, the current mainmenu has some special handling for Android,
but I don't see where PLATFORM gets set.
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 

Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 38 guests

cron