Jump to content
The Dark Mod Forums

Main Menu During Game


Springheel

Recommended Posts

I just realized that we're missing something with the main menu.

 

When you're in the middle of a game in D3 and hit 'esc' you go to the main menu (so you can adjust controls or whatever), but it is a slightly different main menu, with options to "resume game" or "quit current game".

 

We don't have that with our menu. When you hit esc, you go to the regular main menu, with no option to continue your game.

 

We need to fix that. I can create the extra buttons needed. But how do we call the alternate menu while you're in game?

Link to comment
Share on other sites

  • Replies 104
  • Created
  • Last Reply

Top Posters In This Topic

I have no idea, but couldn't you look at Doom 3's in-game main menu to see how they did it?

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Possibly--but the default main menu is a mess and it's hard to find anything in there, especially when most of the menu is the same as the "paused game" menu. I'm hoping Napalm will have some idea based on the work that he did before I go slogging through all that. :)

Link to comment
Share on other sites

If that were the case though, wouldn't it trigger an error when we hit esc during game instead of loading our main menu?

Link to comment
Share on other sites

Sure. :)

 

Since it's loading the main menu, then I imagine there must be some kind of 'if' condition that sets the 'resume' buttons to active. But I don't know what that would be.

Link to comment
Share on other sites

I haven't done any testing to confirm this, but a quick glance at the menu suggests the following:

 

The named event "PlayIntro" is called if the intro movie should be played. (eg, the menu is loaded from a normal game)

The named event "NoIntro" is called if the intro movie should not be played. (eg, the menu is loaded from the editor)

The gui parameter "gui::inGame" is non-zero if and only if a level is loaded.

Link to comment
Share on other sites

It needs an option both to resume game and to quite the current game (if you don't quit one game and start another, your system drags).

 

Napalm, if you want to add the functionality in, I'll add and position the graphics.

Link to comment
Share on other sites

  • 2 weeks later...

Any progress on this Napalm? If you haven't already done it I'll start giving it a shot this weekend.

Link to comment
Share on other sites

I've been messing around with the warnings for the options but I was going to try to work on the ingame this weekend. I'm happy to do it unless you have some vast desire to. I was curious if the button should just go beneath the quit game, and if in quit game there should be a quit from level without quiting game option.

Link to comment
Share on other sites

Ok, here's what I think should be done:

 

when gui::ingame =1 (or whatever)

 

The main menu should have the following buttons. Resume Mission takes you back to the mission. Quit Mission shuts the map down and returns you to the regular main menu.

 

resume01.jpg

 

If you go to the controls menu while ingame, then the Resume Mission button remains, but the Quit Mission is replaced by the Main Menu button (the one that would be there normally).

 

 

resume02.jpg

 

For now you can just use text buttons, and I'll replace them with graphics later.

 

 

Can you post any changes that you make to the code, btw? It will make it easier for me to integrate them if they come a little at a time rather than tons of changes all at once.

Link to comment
Share on other sites

The sooner the better, because I keep getting annoyed when I accidently hit 'esc' to get out of the console window and then can't return to my map. <_<

Link to comment
Share on other sites

Is there a way to exit a particular mission without quitting the whole game? The only way to kill myself in some maps is with fire arrows and then I have to go change my walkspeed again.

Link to comment
Share on other sites

Is there a way to exit a particular mission without quitting the whole game? The only way to kill myself in some maps is with fire arrows and then I have to go change my walkspeed again.

If you're in an open area you could fire your fire arrow straight up in the air and wait for it to come back down again. :) We really need to fix that bug in the bow script though, and have it make use of Gildoran's encumbrance system.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 1 reply
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...