+ The menu now supports multiple pages/nesting, a bit of conversion is needed if you want to port your menu from a previous version
+ Added
MNF_CHANGEPAGE
flag, a setting with this flag will change the page to the number of their value, since his value shouldnt change/be changed, I suggest adding
MNF_NOSAVE
too
+ Added "pagename" parameter, when selecting this option the page will change its name to the defined string, use in combination with a
MNF_CHANGEPAGE
setting
+ Added "selectedvflags" parameter, same thing as "vflags" but thse will only be applied when the setting is selected
*
Hopefully didnt break anything considering how much this adds and changes
-HOW TO CONVERT FROM PREVIOUS VERSIONS-
The part that needs to be converted is
player.menu.contents
, in the past it looked like this (assuming
{element}
is one of the menu elements):
player.menu.contents = {
{element},
{element},
{element},
{element}
}
now
player.menu.contents
holds the different pages that then hold the elements, so your table should look like this now:
player.menu.contents = {
[1] = {
{element},
{element},
{element},
{element}}
}
if you want to add more pages simly add more elements after the 1 as element 2, 3 and so on