While it's possible to make items unselectable, what I would like is the ability to not draw them at all and simply make them not appear. However this has proven to be quite an arduous task that I keep running into walls with.
This would benefit all current options and what not including list menu items and option menu items. When this is returned true, it is not drawn and not even activated, and all hidden items are simply 'collapsed' - hidden away as if they're not even there and NOT leaving any gaps behind.
As they are virtual, modders will be able to override them. In my case for the image above, as an example:
Code: Select all
override bool IsHidden()
{
let plr = players[consoleplayer].mo;
return (!plr || !plr.CountInv("D4Chaingun"));
}
This is also useful for drawing 'menu tips' that I plan on implementing where they show up at the side with a description of what each thing does.