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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 5 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...