In Part X we will examine the ingame inserverinfo, insetup and incontrols menus to see any special features they may contain.
The inserverinfo Menu
This menu is used while ingame to display information about the server we are currently on. Unlike the server info menu that opened from the join menu, there is no single command that will display the information for us in a list box. Instead we must display the information held in various cvars that were set when we joined/created the game. Like any other ingame menu this is not a fullscreen menu and the background item provides the graphical background.
The mapbutton item is a Editfield item attached to the mapname cvar that displays the name of the map we are in. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The gametype item is a Multi item attached to the g_gametype cvar that is used to display the type of game running on the server. We use the cvarFloatList command to convert the numeric game type value into a name. Since it is for display purposes only we make the item nonchangeable with the decoration command. We limit the number of characters displayed to 18 with the maxPaintChars 18 command, to avoid text going off the background.
The caplimit item is a Editfield item attached to the capturelimit cvar that displays the capture limit of the server. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The fraglimit item is a Editfield item attached to the fraglimit cvar that displays the frag limit of the server. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The timelimit item is a Editfield item attached to the timelimit cvar that displays the time limit of the server. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The red item is a Editfield item attached to the g_redTeam cvar that displays the team name of the Red team. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The blue item is a Editfield item attached to the g_blueTeam cvar that displays the team name of the Blue team. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The protocol item is a Editfield item attached to the protocol cvar that displays the protocol version of the server. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The maxclient item is a Editfield item attached to the sv_maxclients cvar that displays the maximum number of clients allowed on the server. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The host item is a Editfield item attached to the sv_hostname cvar that displays the name of the server we are on. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The password item is a Yes/No item attached to the g_needpass cvar that tells us if a password is required to join the game. Since it is for display purposes only we make the item nonchangeable with the decoration command. We limit the number of characters displayed to 3 with the maxPaintChars 3 command, to avoid text going off the background.
The dmflags item is a Editfield item attached to the dmflags cvar that displays the death match flags for the server. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The minplayers item is a Editfield item attached to the bot_minplayers cvar that displays the minimum number players required before the game can start. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The version item is a Editfield item attached to the version cvar that displays the version of Quake 3 the server is running. Since it is for display purposes only we make the item noneditable with the decoration command. We limit the number of characters displayed to 12 with the maxPaintChars 12 command, to avoid text going off the background.
The backbutton item is a button item used to exit this menu. It's action script closes this menu and opens the ingame menu.
The insetup Menu
This menu is used to setup various game options. Except for the fact that this menu is not fullscreen and doesn't have a background it is identical to the non-ingame setup menu. The overlay menus are also identical except for the names. See here for the details of the setup menu.
The incontrols Menu
This menu is used to set various keyboard controls. Except for the fact that this menu is not fullscreen and doesn't have a background it is identical to the non-ingame controls menu. The overlay menus are also identical except for the names. See here for the details of the controls menu.
[Part I] [Part II] [Part III] [Part IV] [Part V] [Part VI] [Part VII] [Part VIII] [Part IX] [Part X]