How to create a custom main menu?

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
Peppigno
Thug
Posts: 20
Joined: Mon Jan 14, 2008 5:35 pm

How to create a custom main menu?

Post by Peppigno »

Could you just tell me what are the classes to create a custom main menu, with my custom buttons and title?

I've created a "myMenuMain" extends the original dx main menu to override some functions, but it doesn't work. Any tips?
Peppigno
Allan
NSF
Posts: 52
Joined: Thu Apr 16, 2009 4:54 pm

Re: How to create a custom main menu?

Post by Allan »

You'd need to also create a custom playerclass, and over-write... *checks SMPlayer.uc*
...ShowMainMenu()

Code: Select all

exec function ShowMainMenu()
{
	local DeusExRootWindow root;
	local DeusExLevelInfo info;
	local MissionEndgame Script;

	if (bIgnoreNextShowMenu)
	{
		bIgnoreNextShowMenu = False;
		return;

		info = GetLevelInfo();

		// force the texture caches to flush
		ConsoleCommand("FLUSH");

		if ((info != None) && (info.MissionNumber == 98))
		{
			bIgnoreNextShowMenu = True;
			PostIntro();
		}
		else if ((info != None) && (info.MissionNumber == 99))
		{
			foreach AllActors(class'MissionEndgame', Script)
				break;
		}

		if (Script != None)
			Script.FinishCinematic();
	}
	else
	{
		root = DeusExRootWindow(rootWindow);
		if (root != None)
			root.InvokeMenu(class'*your main menu class here*');
	}
}
Though if you've already done this, do tell what else you've done. I'd be happy to help.
Image
Click, and watch with false amazement as this dragon grows up.
Peppigno
Thug
Posts: 20
Joined: Mon Jan 14, 2008 5:35 pm

Thanks

Post by Peppigno »

Thank you very much :mrgreen:.

PS: where can I find SMPlayer.uc script?
Peppigno
Allan
NSF
Posts: 52
Joined: Thu Apr 16, 2009 4:54 pm

Re: How to create a custom main menu?

Post by Allan »

It's not for release any time soon I'm afraid - it's the custom player class for DXSM, hence the SM. :P
Image
Click, and watch with false amazement as this dragon grows up.
WildcatPhoenix
UNATCO
Posts: 153
Joined: Mon Mar 20, 2006 11:30 pm
Location: Texas
Contact:

Re: How to create a custom main menu?

Post by WildcatPhoenix »

So he needs to overwrite his own player class, correct? As in *checks(customname)player.uc*?
Peppigno
Thug
Posts: 20
Joined: Mon Jan 14, 2008 5:35 pm

Re: How to create a custom main menu?

Post by Peppigno »

I did a temporary MiBPlayer.uc playerclass 8-[.
Peppigno
Post Reply