In Part VI we will examine the ingame ingame, inquit, indriverinfo, incontrols and insetup menus to see any special features they may contain.
As in all the previously examined menus, the first part of the file contains the itemDefs for the background, the main buttons and their associated glow and mouseover text. It is only after the section looking like the following that menu specific items are defined.
/*********************************************************************/
//
// Start of menu Specific Items
//
/*********************************************************************/
The ingame Menu
This menu is the first menu opened when you press the ESC key while playing the game. Like any ingame menu it does not have to be set to fullscreen and can use the rect command to set the window area. In a single player game the game is paused when we open a menu so we can use menus that cover the entire screen without any problems. With that in mind, we set the window size to 640x480 so it covers the entire screen.
In the onOpen script command in the Overall Menu Information section there is a command that is important. The clearcvar ui_SaveGame command clears out the cvar used to hold the name of the game we wish to save. Without this command we may accidentally save a game under a name we don't want to use. While this is somewhat unique to The Dark Conjunction mod, it is good practise to clear this cvar when the ingame menu is opened.
When we exit the ingame menu system it can be accomplished either by a button or by pressing the ESC key. To allow the use of the ESC key we add the onEsc script command to the Overall Menu Information section. In this script we run the uiScript "closeingame" command, which closes all open menus and unpauses the game.
This menu, and all ingame menus except for the popup menus, contains six buttons that take you to other submenus. These buttons are SAVE, CONTROLS, SETUP, LOAD, QUIT and RESUME. These buttons are all standard items with an associated glow item and a mouseover text item. The first four buttons have an action script that closes the current menu and opens the menu associated with that button. The QUIT button opens the inquit popup menu without closing any other menu. The RESUME button's action script does the same as the onEsc command and runs the uiScript "closeingame" command to close all menus and unpause the game.

The inquit Menu
This menu is exactly the same as the non-ingame quit menu that was examined here. The only difference (other than the name) is if you cancel the program exit with the NO button the ingame menu is opened rather than the main menu.
The indriverinfo Menu
This menu is exactly the same as the non-ingame driverinfo menu that was examined here. The only difference (other than the name) is when you close the menu with the DONE button the ingame menu is opened rather than the main menu.
The incontrols Menu
Other than the different buttons in the first part of the script this menu is exactly the same as the non-ingame controls menu which we examined here.
The insetup Menu
Other than the different buttons in the first part of the script this menu is exactly the same as the non-ingame setup menu which we examined here.
Part VII : Insave and Inload Menus
[Part 1] [Part II] [Part III] [Part IV] [Part V] [Part VI] [Part VII]