|
coastline 0.0.4
|
The front end of the PC port: its menus and their surfaces, the cheats, the selections it restores, and the window procedure of the menus. More...
#include <windows.h>#include <cstdio>#include <ddraw.h>#include "common/assetnames.h"#include "common/frontendstate.h"#include "win32/glide/rgb565image.h"#include "win32/menufont.h"
Go to the source code of this file.
Classes | |
| class | SaveFileList |
| The names of the saved files a screen of the front end lists. More... | |
| struct | MenuItemData |
| Byte payload associated with a menu-list slot. More... | |
| class | MenuItemList |
| Menu list with 100 font and payload slots, optional scrolling, and selection callbacks. More... | |
| class | MenuWidget |
| Front-end panel widget with text, sprites, animations, and input callbacks. More... | |
| class | AudioOptionsUI |
| Callbacks for PC music-track selection and persistent music and sound-effect volume. More... | |
| class | CarSetupUI |
| Callbacks for car, handling, equipment, and navigation choices in the PC car-setup menus. More... | |
| class | ChampionshipSeasonUI |
| Callbacks for starting a championship season and returning to the root menu. More... | |
| class | ConnectionUI |
| Text-entry and network-provider presentation callbacks for the connection menu. More... | |
| class | CreateGameMenuUI |
| Text-entry and return callbacks for creating a network game. More... | |
| class | CreateGameUI |
| State-update callbacks for the network game-creation screen. More... | |
| class | D3DDeviceSelectUI |
| Device-list and driver-selection callbacks for the Direct3D backend. More... | |
| class | DisplayModeSelectUI |
| Display-mode list and configuration callbacks for the video-options screen. More... | |
| class | GameOptionsUI |
| Configuration, image, and label callbacks for PC graphics and force-feedback options. More... | |
| class | InputOptionsUI |
| Input-device selection, default bindings, and label callbacks for PC controls. More... | |
| class | JoinCreateGameUI |
| Session-list and return callbacks for joining or creating a network game. More... | |
| class | KeyConfigUI |
| Action selection, key capture, and binding-warning callbacks for PC input configuration. More... | |
| class | LoadFileListUI |
| Saved-file list selection callbacks. More... | |
| class | LoadSeasonUI |
| Championship save loading, continuation, and return callbacks. More... | |
| class | LoadTimeAttackMenuUI |
| Saved time-attack selection, car setup, and return callbacks. More... | |
| class | MainMenuUI |
| Root-menu callbacks for entering the credits sequence. More... | |
| class | ModemConnectionUI |
| Modem-number entry, provider selection, and connection-screen return callbacks. More... | |
| class | MultiplayerConnectionUI |
| Provider selection, hover animation, and return callbacks for multiplayer connections. More... | |
| class | MultiplayerGameSetupUI |
| Multiplayer race-setup callbacks using the shared session and cached connection screens. More... | |
| class | MultiplayerSetupUI |
| Sprite-update callbacks for multiplayer car-group choices. More... | |
| class | NetworkCarSetupUI |
| Network car-setup callbacks for chat, player selection, readiness, and session transitions. More... | |
| class | OptionsMenuUI |
| Return callbacks that destroy the active Options screen and restore a cached destination. More... | |
| class | OverwritePromptUI |
| Drawing callbacks for the overwrite-confirmation prompt. More... | |
| class | PlayerNameEntryUI |
| Player-name editing, continuation, and root-menu return callbacks. More... | |
| class | PreRaceExitSeasonConfirmUI |
| Confirmation callbacks for abandoning a championship from pre-race information. More... | |
| class | PreRaceInfoUI |
| Championship pre-race records, options, saving, and exit-confirmation callbacks. More... | |
| class | QuitGameConfirmUI |
| Application-exit confirmation and root-menu return callbacks. More... | |
| class | RaceResultsInfoUI |
| Lap selection, timing labels, and submenu callbacks for race-results information. More... | |
| class | RaceResultsSummaryUI |
| Submenu and return callbacks for the championship race-results summary. More... | |
| class | RaceResultsTotalsUI |
| Season points, progress labels, submenu callbacks, and continuation from results totals. More... | |
| class | RaceSetupUI |
| Callbacks for selecting a track, weather, and lap count. More... | |
| class | ResultsSummaryExitSeasonConfirmUI |
| Callbacks for confirming an exit from the championship results. More... | |
| class | SaveSeasonUI |
| Callbacks for selecting and naming a championship save slot. More... | |
| class | SaveTimeAttackMenuUI |
| Callbacks for the time attack save menu. More... | |
| class | SaveTimeAttackUI |
| Callbacks for the time attack save-slot screen. More... | |
| class | SeasonCongratsUI |
| Callbacks for the championship completion screen. More... | |
| class | SeasonFileUI |
| Callbacks for the selected championship file's labels. More... | |
| class | SeasonProgressInfoUI |
| Callbacks for championship progress and actions. More... | |
| class | SeasonUI |
| Callbacks for championship standings and totals. More... | |
| class | TimeAttackMenuUI |
| Callbacks for the time attack menu. More... | |
| class | TimeAttackUI |
| Callbacks for the selected time attack record. More... | |
| class | VideoOptionsUI |
| Callbacks for the video options screen. More... | |
| struct | KeyConfigEntry |
| A keyboard configuration row and its label resource. More... | |
| class | MenuPanel |
| A panel of a screen of the front end. More... | |
| class | MenuScreen |
| A screen of the front end menus. More... | |
| struct | MenuImage |
| An image of the menus and the file it is loaded from. More... | |
| struct | FrontEndResourceSlot |
| A resource of the front end. More... | |
| struct | MenuSprite |
| A sprite of the menus, a part of a menu image. More... | |
| struct | CheatCode |
| A cheat: the sequence of button changes that applies it, newest first, ending in 0xFFFF. More... | |
| struct | ErrorMessage |
| An error of the game that ShowErrorMessage() can show. More... | |
| struct | KeyCharacter |
| A key of text input and the character it types. More... | |
Macros | |
| #define | SAVE_FILE_NAME_COUNT 100 |
| The number of names of a SaveFileList. | |
| #define | SAVE_FILE_NAME_SIZE 0x104 |
| The size of a name of a SaveFileList. | |
| #define | MENU_PANEL_WIDGET_COUNT 200 |
| The number of widgets of a MenuPanel. | |
| #define | MENU_SCREEN_PANEL_COUNT 20 |
| The number of panels of a MenuScreen. | |
| #define | MENU_CURSOR_WIDGET_INDEX (MENU_PANEL_WIDGET_COUNT - 1) |
| The index in apWidgets of the mouse cursor of the first panel of the root screen. | |
| #define | MENU_IMAGE_COUNT 145 |
| The number of entries of g_aMenuImages. | |
| #define | MENU_IMAGE_PATH_SIZE 0x104 |
| The size of the path of a menu image. | |
| #define | FRONT_END_RESOURCE_SLOT_COUNT 60 |
| The number of entries of g_aFrontEndResourceSlots. | |
| #define | FRONT_END_RESOURCE_FLAG_COUNT 100 |
| The number of entries of g_adwFrontEndResourceFlags. | |
| #define | MENU_GLYPH_RECT_COUNT 68 |
| The number of entries of g_aMenuGlyphRects. | |
| #define | MENU_ALT_GLYPH_RECT_COUNT 20 |
| The number of entries of g_aMenuAltGlyphRects. | |
| #define | MENU_LARGE_ICON_RECT_COUNT 15 |
| The number of entries of g_aMenuLargeIconRects. | |
| #define | MENU_LARGE_ICON_3_COLUMN_RECT_COUNT 9 |
| The number of entries of g_aMenuLargeIconRects3Col. | |
| #define | INPUT_DEVICE_MENU_CHOICES 4 |
| The number of entries of g_adwInputDeviceMenuIndexToDevice. | |
| #define | CHEAT_CODE_COUNT 7 |
| The number of entries of g_aCheatCodes, with the entry that ends it. | |
| #define | CHEAT_INPUT_BUFFER_SIZE 32 |
| The number of entries of g_anCheatInputBuffer. | |
| #define | ERROR_MESSAGE_COUNT 8 |
| The number of entries of g_ErrorMessageTable. | |
| #define | KEY_CHARACTER_COUNT 98 |
| The number of entries of g_KeyNameLookupTable. | |
Typedefs | |
| using | MenuActionWidget = MenuWidget |
| Common widget representation used by menu action callbacks. | |
| using | NetworkMenuWidget = MenuWidget |
| Common widget representation used by network menu callbacks. | |
Functions | |
| int | ToggleMenuItemTextEditA (MenuWidget *pWidget) |
| Toggle text editing for the selected season-save slot and back up its previous label. | |
| int | ToggleMenuItemTextEditB (MenuWidget *pWidget) |
| Toggle text editing for the selected time-attack slot and back up its previous label. | |
| int | RestoreMenuItemTextA (MenuWidget *pWidget) |
| Restore the previous season-save label when editing was active. | |
| int | RestoreMenuItemTextB (MenuWidget *pWidget) |
| Restore the previous time-attack label when editing was active. | |
| int | ReturnToMultiplayerLobby (MenuWidget *pWidget) |
| Destroy the active network setup screen and restore the cached race setup. | |
| int | ReturnToVideoOptionsFromResolution (MenuWidget *pWidget) |
| Destroy display mode panels and restore the cached input configuration screen. | |
| int | ReturnToVideoOptionsFromDeviceSelect (MenuWidget *pWidget) |
| Destroy device selection panels and restore the cached input configuration screen. | |
| void | RefreshSessionListSlots (void) |
| Remove player-list items by index before enumerating a session's players. | |
| int | GetSelectedSessionGuid (GUID *guid) |
| Copy the selected session's instance GUID when its menu item has one. | |
| int | ShowInputOptionsMenu (MenuWidget *pWidget) |
| Open cached input options, building the screen on its first visit. | |
| int | SeasonRoundList_SetBrowsingFlag (MenuWidget *pWidget=nullptr) |
| Select saved-round browsing for season previews. | |
| int | SeasonRoundList_ClearBrowsingFlag (MenuWidget *pWidget=nullptr) |
| Select the current round for season previews. | |
| int | OnSessionNameEdited (MenuWidget *pWidget) |
| Update the session name from the text field and enable continuing when it is nonempty. | |
| int | OnPlayerNameEdited (MenuWidget *pWidget) |
| Update the player name from the text field and enable continuing when it is nonempty. | |
| int | OnModemPhoneNumberEdited (MenuWidget *pWidget) |
| Save the edited modem number and enable continuing when it is nonempty. | |
| int | SeasonRoundList_UpdateRoundSelection (MenuWidget *pWidget) |
| Update the selected round from the season preview list. | |
| int | OnChatMessageEdited (MenuWidget *pWidget) |
| Copy the edited chat text into the outgoing message buffer. | |
| int | OnTcpIpAddressEdited (MenuWidget *pWidget) |
| Save the edited TCP/IP address in the game configuration. | |
| int | OnTcpIpPortEdited (MenuWidget *pWidget) |
| Save the edited TCP/IP port in the game configuration. | |
| int | BuildInputOptionsUI (MenuScreen *pScreen) |
| Build input options on the supplied screen. | |
| int | ShowVideoOptionsMenu (MenuWidget *pWidget) |
| Open cached video options, building the screen on its first visit. | |
| int | ShowAudioOptionsMenu (MenuWidget *pWidget) |
| int | ShowGameOptionsMenu (MenuWidget *pWidget) |
| int | BuildAudioOptionsUI (MenuScreen *pScreen) |
| Build the CD music and volume controls on an audio options screen. | |
| int | DrawGameplaySliderA (MenuWidget *pWidget) |
| Draw the sound-effects volume slider. | |
| int | DrawGameplaySliderB (MenuWidget *pWidget) |
| Draw the music volume slider. | |
| int | BuildGameOptionsUI (MenuScreen *pScreen) |
| Build gameplay options on the supplied screen. | |
| int | BuildVideoOptionsUI (MenuScreen *pScreen) |
| Build video options on the supplied screen. | |
| int | ShowKeyConfigScreen (MenuWidget *pWidget) |
| Open cached key configuration, building the screen on its first visit. | |
| int | BuildKeyConfigUI (MenuScreen *pScreen) |
| Build key configuration on the supplied screen. | |
| int | ShowModemDialUpScreen (MenuWidget *pWidget) |
| Open cached modem connection options, building the screen on its first visit. | |
| int | ReturnToMainMenuFromSeason (MenuWidget *pWidget) |
| Reset time attack choices and restore race setup after a season. | |
| int | BuildModemConnectionUI (MenuScreen *pScreen) |
| Build modem connection options on the supplied screen. | |
| int | ShowDisplayModeSelectMenu (MenuWidget *pWidget) |
| Open display mode selection and populate its settings lists after successful creation. | |
| int | BuildDisplayModeSelectUI (MenuScreen *pScreen) |
| Build display mode selection on the supplied screen. | |
| int | PopulateVideoSettingsLists (void) |
| Populate the video settings lists. | |
| int | PopulateDisplayDeviceList (void) |
| Populate available display devices. | |
| int | CompareDisplayModes (const void *left, const void *right) |
| Compare display modes by colour depth, width, then height for sorting. | |
| int | PopulateDisplayModeList (void) |
| Populate available display modes for the selected device. | |
| int | ShowD3DDeviceSelectMenu (MenuWidget *pWidget) |
| Open Direct3D device selection and populate its settings lists. | |
| int | BuildD3DDeviceSelectUI (MenuScreen *pScreen) |
| Build Direct3D device selection on the supplied screen. | |
| int | ProcessMenuTextEditInput (MenuWidget *pWidget, short nFont) |
| Process text entry and notify the widget when editing finishes. | |
| int | DetectDuplicateKeyBindings (int nDevice) |
| Mark repeated key bindings in the selected device's action table. | |
| int | ShowCarSetupScreen (MenuWidget *pWidget) |
| int | BuildCarSetupUI (MenuScreen *pScreen) |
| Build car selection and handling controls on the supplied screen. | |
| int | OnListDialogItemSelected (MenuWidget *pWidget) |
| Advance to pre-race information and discard the points dialog. | |
| int | OnPressAnyKeyContinue (MenuWidget *pWidget) |
| Advance to pre-race information and reset the season totals after congratulations. | |
| int | ValidateEntityState (MenuWidget *pWidget) |
| Update a menu item's font and sprite for its active state. | |
| int | ValidateEntityStateAlwaysTrue (MenuWidget *pWidget) |
| Update a menu item's active state while always accepting the update. | |
| int | ProcessCheatInputAndValidateEntity (MenuWidget *pWidget) |
| Process cheat-code input and update the menu item's active state. | |
| int | BuildMultiplayerConnectionUI (MenuScreen *pScreen) |
| Build connection-provider choices on the supplied screen. | |
| int | ShowMultiplayerConnectionScreen (MenuWidget *pWidget=nullptr) |
| Open cached connection settings, building the screen on its first visit. | |
| int | RaceResultsPanel_PreUpdateSelectLastRace (void) |
| Display the previous race's season position in the results panel. | |
| int | RaceResultsPanel_PostUpdateRestoreSeasonProgress (void) |
| Restore the current season position after drawing the results panel. | |
| bool | InitializeFrontEndResources (void) |
| Set up the front end. | |
| int | ShowNetworkCarSetupScreen (MenuWidget *pWidget=nullptr) |
| Open car setup for network play and update the host session settings. | |
| int | BuildNetworkCarSetupUI (MenuScreen *pScreen) |
| Build player, car, and chat controls for network car setup. | |
| int | CompleteConnectionTextEdit (MenuWidget *pWidget) |
| Accept the edited text of a connection field. | |
| int | IsGameCdInDrive (int nDrive) |
| Check whether a drive contains a CD-ROM volume labelled Boss Rally. | |
| int | FindGameCdDrive (void) |
| Search CD-ROM drives for the Boss Rally disc and restore the original working directory. | |
| int | ShowChampionshipSeasonMenu (MenuWidget *pWidget) |
| int | BuildChampionshipSeasonUI (MenuScreen *pScreen) |
| Build the championship season-selection screen. | |
| int | BuildSaveTimeAttackMenuUI (MenuScreen *pScreen) |
| Build the time-attack save-slot screen. | |
| int | ShowLoadGhostMenu (MenuWidget *pWidget) |
| int | ShowHostRaceSetupScreen (MenuWidget *pWidget) |
| Host a session and show the race setup of the network game. | |
| int | ShowCreateGameScreen (MenuWidget *pWidget) |
| Show the screen that creates a network game. | |
| int | ShowMultiplayerNameScreen (MenuWidget *pWidget) |
| int | ShowJoinCreateGameScreen (MenuWidget *pWidget) |
| int | ShowSeasonProgressInfoScreen (MenuWidget *pWidget=nullptr) |
| Open the season progress screen with the currently selected round. | |
| int | ShowRaceSetupMenu (MenuWidget *pWidget) |
| int | ShowQuitGameConfirmMenu (MenuWidget *pWidget) |
| int | BuildTimeAttackMenuUI (MenuScreen *pScreen) |
| Build the time-attack setup screen. | |
| int | BuildLoadTimeAttackMenuUI (MenuScreen *pScreen) |
| Build the time-attack load-slot screen. | |
| int | BuildMultiplayerGameSetupUI (MenuScreen *pScreen) |
| Build race settings for a network game. | |
| int | BuildPlayerNameEntryUI (MenuScreen *pScreen) |
| Build the player-name entry screen for network play. | |
| int | BuildJoinCreateGameUI (MenuScreen *pScreen) |
| Build the menu for joining or creating a network game. | |
| int | BuildCreateGameMenuUI (MenuScreen *pScreen) |
| Build the network game-creation screen. | |
| int | JoinSessionAndShowRaceSetup (MenuWidget *pWidget=nullptr) |
| int | BuildSeasonProgressInfoUI (MenuScreen *pScreen) |
| Build the current championship progress screen. | |
| int | BuildRaceSetupUI (MenuScreen *pScreen) |
| Build track, car, and weather settings for an arcade race. | |
| int | BuildQuitGameConfirmUI (MenuScreen *pScreen) |
| Build the confirmation screen for quitting the game. | |
| int | ShowOptionsMenu (MenuWidget *pWidget) |
| int | BuildOptionsMenuUI (MenuScreen *pScreen) |
| Build the main options menu. | |
| void | SetActiveMenuItemText (const char *pszText) |
| Set the root menu item's text when the item exists. | |
| int | BuildFrontEndRootMenuUI (MenuScreen *pScreen) |
| Build the items of the root screen of the front end. | |
| void | InitMenuSpriteRects (void) |
| Set the rectangles of the sprites of the menus. | |
| bool | InitMenuSurfaces (void) |
| Create g_pMenuFrameSurface, show the loading screen unless this is the first call, and load every menu image with its colour key. | |
| void | RestoreMenuSelections (void) |
| Copy adwMenuSelectionBackup of g_GlobalRallyConfig and its other settings back into the choices of the menus. | |
| int | ShowRaceResultsScreen (void) |
| Show the screen of the results of a race. | |
| int | ReturnToNetworkLobbyScreen (void) |
| Show the lobby of network play again after a race. | |
| int | ShowTimeAttackMenu (MenuWidget *pWidget) |
| Show the menu of a finished time attack, when it is not shown already. | |
| int | ShowSaveGhostMenu (int nUnused) |
| Show the menu to save the ghost car of a time attack, when it is not shown already. | |
| int | EnterTimeAttackMode (void) |
| Enter the time attack mode, first showing the menus of a finished time attack when the first vehicle has driven every lap. | |
| void | EnterNetworkLobbyScreen (void) |
| Show the lobby of network play. | |
| bool | RestoreMenuSurfaces (void) |
| Restore the surfaces of the loaded menu images and load their bitmaps into them again. | |
| bool | ReleaseMenuSurfacesAndFail (HWND hWnd) |
| Release the surfaces of the menu images and exit the game. | |
| void | BlitSurfaceRegion (int nDestX, int nDestY, WORD wImage, const RECT *pRect, DWORD dwFlags) |
| Draw a part of a menu image into the back buffer. | |
| void | ReleaseMenuSurfaces (void) |
| Release the surfaces of the loaded menu images. | |
| void | Cheat_Hazel_UnlockAllTracks (void) |
| Unlock every track, play the sound of a cheat, and set the network menus to state 2. | |
| void | Cheat_Brielle_UnlockBonusTracks (void) |
| Unlock the bonus tracks, play the sound of a cheat, and set the network menus to state 2. | |
| void | Cheat_DisableVehicleDeformation (void) |
| Stop the vehicles deforming, play the sound of this cheat, and set the network menus to state 3. | |
| void | Cheat_Sophia_EnableOutroSequence (void) |
| Show the closing sequence, play the sound of a cheat, and set the network menus to state 2. | |
| void | Cheat_Lynette_UnlockBonusCars (void) |
| Unlock the bonus cars, play the sound of a cheat, and set the network menus to state 2. | |
| void | Cheat_Benjamin_UnlockAllCars (void) |
| Unlock every car, play the sound of a cheat, and set the network menus to state 2. | |
| void | ProcessCheatCodeInput (void) |
| Add the last character the window received to the characters of the cheats, in lowercase, and apply each cheat whose word they end with. | |
| void | CheckCheatCodeMatches (void) |
| Apply each cheat whose word the characters of the cheats end with. | |
| void | ApplyCarGroupPreset (void) |
| Set the cars of the chosen class and choose the first of them, when the class changed since the last call. | |
| int | IsCarSelectable (int nCar) |
| Report whether a car can be chosen in the current mode of the game. | |
| void | ResetGameModeConfig (void) |
| Reset the track, the weather, the car and its settings, and the input device, to the keyboard, for a new game mode. | |
| LRESULT WINAPI | FrontEndWindowProc (void *pUnused, HWND hWnd, UINT nMessage, WPARAM wParam, LPARAM lParam) |
| Give a message of the main window to the front end. | |
| char | LookupKeyCharacter (DWORD dwKey) |
| The character a key of text input types. | |
| unsigned | IsTrackSelectable (int nTrack) |
| Report a track's selection mask or a cheat override. | |
| int | BuildRaceResultsInfoUI (MenuScreen *pScreen) |
| Build the race-results information screen. | |
| int | BuildRaceResultsSummaryUI (MenuScreen *pScreen) |
| Build the race-results summary screen. | |
| int | BuildRaceResultsTotalsUI (MenuScreen *pScreen) |
| Build the race-results totals screen. | |
| int | BuildResultsSummaryExitSeasonConfirmUI (MenuScreen *pScreen) |
| Build confirmation for exiting a season after the results summary. | |
| int | BuildSeasonCongratsUI (MenuScreen *pScreen) |
| Build the championship congratulations screen. | |
| int | BuildNotEnoughPointsUI (MenuScreen *pScreen) |
| Build the insufficient-points screen after a championship race. | |
| int | ShowSeasonCongratsScreen (MenuWidget *pWidget) |
| Show cached championship congratulations, building the screen on its first visit. | |
| int | ShowNotEnoughPointsScreen (MenuWidget *pWidget) |
| Show cached championship failure results, building the screen on its first visit. | |
| int | ShowRaceResultsTotalsScreen (MenuWidget *pWidget=nullptr) |
| Show cached race totals, building the screen on its first visit. | |
| int | ShowRaceResultsSummaryScreen (MenuWidget *pWidget=nullptr) |
| Show cached race summary results and build an exit confirmation on the first visit. | |
| int | BuildPreRaceInfoUI (MenuScreen *pScreen) |
| Build the pre-race information screen. | |
| int | BuildPreRaceExitSeasonConfirmUI (MenuScreen *pScreen) |
| Build confirmation for exiting a season before a race. | |
| int | ShowPreRaceInfoScreen (MenuWidget *pWidget) |
| Show cached pre-race information and build an exit confirmation on the first visit. | |
| int | BuildLoadSeasonUI (MenuScreen *pScreen) |
| Build the saved-season selection screen. | |
| int | BuildSaveSeasonUI (MenuScreen *pScreen) |
| Build the season save-slot screen. | |
| int | ShowLoadSeasonMenu (MenuWidget *pWidget) |
| Show cached season loading, building the screen on its first visit. | |
| int | ShowSaveSeasonScreen (MenuWidget *pWidget) |
| Show cached season saving, building the screen on its first visit. | |
Variables | |
| int | g_dwSelectedDisplayModeIndex |
| The selected row in the display-mode list, updated by Direct3D and Glide device selection. | |
| int | g_dwActiveDisplayModeIndex |
| The entry of the list of display modes in use. | |
| RECT | g_rcMenuDeviceListBox |
| The menu bounds of the display-device list. | |
| int | g_adwKeyBindingDuplicateFlags [KEY_CONFIG_ENTRY_COUNT] |
| Flags marking duplicate bindings in each key-configuration row. | |
| MenuScreen * | g_pActiveMenuScreen |
| The screen of the front end that is showing. | |
| NetworkMenuWidget * | g_pJoinCreateGameMenu |
| The list of sessions of the screen to join or create a network game, while it exists. | |
| void * | g_pFrontEndScratchBuffer |
| A buffer of the front end, passed to FrontEndWindowProc() and not read by it. | |
| MenuImage | g_aMenuImages [MENU_IMAGE_COUNT] |
| The images of the menus. | |
| unsigned short | g_wMenuImageLoadedCount |
| The number of entries of g_aMenuImages loaded. | |
| MenuScreen * | g_pRootMenuScreen |
| The screen the front end starts at. | |
| MenuScreen * | g_pCachedMenu_RaceSetupNetwork |
| The cached screen of the setup of a network race. | |
| MenuScreen * | g_pCachedMenu_GameplaySettings |
| The cached screen of the settings of the game. | |
| MenuScreen * | g_pCachedMenu_Championship |
| The cached screen of the championship. | |
| MenuWidget * | g_pPlayerNameContinueItem |
| The item that continues from the name of the player. | |
| MenuWidget * | g_pMultiplayerGameSetupMenu |
| The menu of the setup of a network game. | |
| RECT | g_rcMenuCenterPanel |
| Bounds used for the centre panel of the multiplayer session list. | |
| RECT | g_rcMenuNetworkPlayers |
| Bounds of the network player list beside the session menu. | |
| const char | g_szSpace [] |
| A one-space string used by menu labels and the Glide texture cache. | |
| MenuWidget * | g_pSaveTimeAttackMenu |
| The menu to save a time attack. | |
| MenuItemList * | g_pSaveTimeAttackEditMenu |
| The field of the name of a saved time attack. | |
| NetworkMenuWidget * | g_pNetworkSessionJoinMenu |
| The menu to join a network session. | |
| NetworkMenuWidget * | g_pNetworkCarSetupMenu |
| The menu of the setup of the car of network play. | |
| MenuWidget * | g_pNetworkPlayerListMenu |
| The list of the players of network play. | |
| MenuWidget * | g_pModemContinueItem |
| The item that continues from the modem screen. | |
| MenuWidget * | g_pDisplayModeSelectMenu |
| The menu that chooses the display mode. | |
| MenuWidget * | g_pD3DDeviceSelectMenu |
| The menu that chooses the Direct3D device. | |
| RECT | g_aMenuGlyphRects [MENU_GLYPH_RECT_COUNT] |
| The 16 by 16 glyphs of the menus, eight to a row. | |
| RECT | g_aMenuAltGlyphRects [MENU_ALT_GLYPH_RECT_COUNT] |
| The 39 by 44 glyphs of the menus, five to a row. | |
| MenuSprite | g_aMenuSprites [] |
| The sprites of the menus. | |
| int | g_dwMenuSurfaceInitCount |
| The number of times the menu images were loaded. | |
| Rgb565Image * | g_pMenuFrameSurface |
| The frame the menus are drawn into, the size of the frame buffer. | |
| int | g_dwMenuScreenActivated |
| Whether ActivateMenuScreen() is entering the screen the game returns to. | |
| int | g_dwLobbyLaunchHandled |
| Whether the lobby was entered for a game launched from a lobby. | |
| int | g_dwNetworkMenuState |
| The state of the network menus. | |
| int | g_dwCheatAllTracksUnlocked |
| Whether the cheat that unlocks every track was entered. | |
| int | g_dwCheatBonusTracksUnlocked |
| Whether the cheat that unlocks the bonus tracks was entered. | |
| int | g_dwCheatBonusCarsUnlocked |
| Whether the cheat that unlocks the bonus cars was entered. | |
| int | g_dwCheatOutroSequenceEnabled |
| Whether the cheat that shows the closing sequence was entered. | |
| int | g_dwCheatAllCarsUnlocked |
| Whether the cheat that unlocks every car was entered. | |
| CheatCode | g_aCheatCodes [CHEAT_CODE_COUNT] |
| The cheats, ended by an entry without a word. | |
| int | g_anCheatInputBuffer [CHEAT_INPUT_BUFFER_SIZE] |
| The last characters typed for the cheats, a ring that wraps at its end. | |
| int | g_dwCheatInputCount |
| The entry of g_anCheatInputBuffer the next character fills. | |
| int | g_dwLastWmCharParam |
| The last character the window received, or 0 once it is read. | |
| int | g_dwSelectedSessionIndex |
| The index of the network session chosen in the list of sessions. | |
| int | g_dwSelectedCdTrack |
| The track of the CD the menus show, counted from the first music track. | |
| int | g_dwSessionListRefreshing |
| Whether the list of network sessions is refreshing. | |
| int | g_dwTrackMenuIndex |
| The chosen track. | |
| int | g_dwSelectedWeather |
| The chosen weather. | |
| int | g_dwUnusedWeatherMenuValue |
| An unused value cleared with the menu selections. | |
| int | g_dwSelectedCarClass |
| The chosen class of car. | |
| ErrorMessage | g_ErrorMessageTable [ERROR_MESSAGE_COUNT] |
| The errors of the game, indexed by the code of the error. | |
| KeyCharacter | g_KeyNameLookupTable [KEY_CHARACTER_COUNT] |
| The keys of text input, each typing the printable character of its own code. | |
The front end of the PC port: its menus and their surfaces, the cheats, the selections it restores, and the window procedure of the menus.
| #define SAVE_FILE_NAME_COUNT 100 |
The number of names of a SaveFileList.
| #define SAVE_FILE_NAME_SIZE 0x104 |
The size of a name of a SaveFileList.
| #define MENU_PANEL_WIDGET_COUNT 200 |
The number of widgets of a MenuPanel.
| #define MENU_SCREEN_PANEL_COUNT 20 |
The number of panels of a MenuScreen.
| #define MENU_CURSOR_WIDGET_INDEX (MENU_PANEL_WIDGET_COUNT - 1) |
The index in apWidgets of the mouse cursor of the first panel of the root screen.
| #define MENU_IMAGE_COUNT 145 |
The number of entries of g_aMenuImages.
| #define MENU_IMAGE_PATH_SIZE 0x104 |
The size of the path of a menu image.
| #define FRONT_END_RESOURCE_SLOT_COUNT 60 |
The number of entries of g_aFrontEndResourceSlots.
| #define FRONT_END_RESOURCE_FLAG_COUNT 100 |
The number of entries of g_adwFrontEndResourceFlags.
| #define MENU_GLYPH_RECT_COUNT 68 |
The number of entries of g_aMenuGlyphRects.
| #define MENU_ALT_GLYPH_RECT_COUNT 20 |
The number of entries of g_aMenuAltGlyphRects.
| #define MENU_LARGE_ICON_RECT_COUNT 15 |
The number of entries of g_aMenuLargeIconRects.
| #define MENU_LARGE_ICON_3_COLUMN_RECT_COUNT 9 |
The number of entries of g_aMenuLargeIconRects3Col.
| #define INPUT_DEVICE_MENU_CHOICES 4 |
The number of entries of g_adwInputDeviceMenuIndexToDevice.
| #define CHEAT_CODE_COUNT 7 |
The number of entries of g_aCheatCodes, with the entry that ends it.
| #define CHEAT_INPUT_BUFFER_SIZE 32 |
The number of entries of g_anCheatInputBuffer.
| #define ERROR_MESSAGE_COUNT 8 |
The number of entries of g_ErrorMessageTable.
| #define KEY_CHARACTER_COUNT 98 |
The number of entries of g_KeyNameLookupTable.
| using MenuActionWidget = MenuWidget |
Common widget representation used by menu action callbacks.
| using NetworkMenuWidget = MenuWidget |
Common widget representation used by network menu callbacks.
| int ToggleMenuItemTextEditA | ( | MenuWidget * | pWidget | ) |
Toggle text editing for the selected season-save slot and back up its previous label.
| pWidget | The menu item that opened text editing. |
| int ToggleMenuItemTextEditB | ( | MenuWidget * | pWidget | ) |
Toggle text editing for the selected time-attack slot and back up its previous label.
| pWidget | The menu item that opened text editing. |
| int RestoreMenuItemTextA | ( | MenuWidget * | pWidget | ) |
Restore the previous season-save label when editing was active.
| pWidget | The menu item associated with text editing. |
| int RestoreMenuItemTextB | ( | MenuWidget * | pWidget | ) |
Restore the previous time-attack label when editing was active.
| pWidget | The menu item associated with text editing. |
| int ReturnToMultiplayerLobby | ( | MenuWidget * | pWidget | ) |
Destroy the active network setup screen and restore the cached race setup.
| int ReturnToVideoOptionsFromResolution | ( | MenuWidget * | pWidget | ) |
Destroy display mode panels and restore the cached input configuration screen.
| int ReturnToVideoOptionsFromDeviceSelect | ( | MenuWidget * | pWidget | ) |
Destroy device selection panels and restore the cached input configuration screen.
| void RefreshSessionListSlots | ( | void | ) |
Remove player-list items by index before enumerating a session's players.
| int GetSelectedSessionGuid | ( | GUID * | guid | ) |
| int ShowInputOptionsMenu | ( | MenuWidget * | pWidget | ) |
Open cached input options, building the screen on its first visit.
| pWidget | Not read. |
| int SeasonRoundList_SetBrowsingFlag | ( | MenuWidget * | pWidget = nullptr | ) |
Select saved-round browsing for season previews.
| int SeasonRoundList_ClearBrowsingFlag | ( | MenuWidget * | pWidget = nullptr | ) |
Select the current round for season previews.
| int OnSessionNameEdited | ( | MenuWidget * | pWidget | ) |
Update the session name from the text field and enable continuing when it is nonempty.
| pWidget | The session-name text field. |
| int OnPlayerNameEdited | ( | MenuWidget * | pWidget | ) |
Update the player name from the text field and enable continuing when it is nonempty.
| pWidget | The player-name text field. |
| int OnModemPhoneNumberEdited | ( | MenuWidget * | pWidget | ) |
Save the edited modem number and enable continuing when it is nonempty.
| pWidget | The modem-number text field. |
| int SeasonRoundList_UpdateRoundSelection | ( | MenuWidget * | pWidget | ) |
Update the selected round from the season preview list.
| pWidget | The round list widget. |
| int OnChatMessageEdited | ( | MenuWidget * | pWidget | ) |
Copy the edited chat text into the outgoing message buffer.
| pWidget | The chat text field. |
| int OnTcpIpAddressEdited | ( | MenuWidget * | pWidget | ) |
Save the edited TCP/IP address in the game configuration.
| pWidget | The address text field. |
| int OnTcpIpPortEdited | ( | MenuWidget * | pWidget | ) |
Save the edited TCP/IP port in the game configuration.
| pWidget | The port text field. |
| int BuildInputOptionsUI | ( | MenuScreen * | pScreen | ) |
Build input options on the supplied screen.
| int ShowVideoOptionsMenu | ( | MenuWidget * | pWidget | ) |
Open cached video options, building the screen on its first visit.
| pWidget | Not read. |
| int ShowAudioOptionsMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | Not read. |
| int ShowGameOptionsMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | Not read. |
| int BuildAudioOptionsUI | ( | MenuScreen * | pScreen | ) |
Build the CD music and volume controls on an audio options screen.
| pScreen | The screen to populate. |
| int DrawGameplaySliderA | ( | MenuWidget * | pWidget | ) |
Draw the sound-effects volume slider.
| pWidget | The slider widget. |
| int DrawGameplaySliderB | ( | MenuWidget * | pWidget | ) |
Draw the music volume slider.
| pWidget | The slider widget. |
| int BuildGameOptionsUI | ( | MenuScreen * | pScreen | ) |
Build gameplay options on the supplied screen.
| pScreen | The screen to populate. |
| int BuildVideoOptionsUI | ( | MenuScreen * | pScreen | ) |
Build video options on the supplied screen.
| int ShowKeyConfigScreen | ( | MenuWidget * | pWidget | ) |
Open cached key configuration, building the screen on its first visit.
| pWidget | Not read. |
| int BuildKeyConfigUI | ( | MenuScreen * | pScreen | ) |
Build key configuration on the supplied screen.
| int ShowModemDialUpScreen | ( | MenuWidget * | pWidget | ) |
Open cached modem connection options, building the screen on its first visit.
| pWidget | Not read. |
| int ReturnToMainMenuFromSeason | ( | MenuWidget * | pWidget | ) |
Reset time attack choices and restore race setup after a season.
| pWidget | Not read. |
| int BuildModemConnectionUI | ( | MenuScreen * | pScreen | ) |
Build modem connection options on the supplied screen.
| int ShowDisplayModeSelectMenu | ( | MenuWidget * | pWidget | ) |
Open display mode selection and populate its settings lists after successful creation.
| pWidget | The item chosen, unread. |
| int BuildDisplayModeSelectUI | ( | MenuScreen * | pScreen | ) |
Build display mode selection on the supplied screen.
| int PopulateVideoSettingsLists | ( | void | ) |
Populate the video settings lists.
The Glide library has no list of display devices.
| int PopulateDisplayDeviceList | ( | void | ) |
Populate available display devices.
| int CompareDisplayModes | ( | const void * | left, |
| const void * | right ) |
Compare display modes by colour depth, width, then height for sorting.
| left | Pointer to the first display-mode pointer. |
| right | Pointer to the second display-mode pointer. |
| int PopulateDisplayModeList | ( | void | ) |
Populate available display modes for the selected device.
The Glide library lists the modes of BuildGlideDisplayModeList().
| int ShowD3DDeviceSelectMenu | ( | MenuWidget * | pWidget | ) |
Open Direct3D device selection and populate its settings lists.
| pWidget | The item chosen, unread. |
| int BuildD3DDeviceSelectUI | ( | MenuScreen * | pScreen | ) |
Build Direct3D device selection on the supplied screen.
| int ProcessMenuTextEditInput | ( | MenuWidget * | pWidget, |
| short | nFont ) |
Process text entry and notify the widget when editing finishes.
| pWidget | The widget containing the editable font. |
| nFont | The font index within the widget. |
| int DetectDuplicateKeyBindings | ( | int | nDevice | ) |
Mark repeated key bindings in the selected device's action table.
| nDevice | The input device index. |
| int ShowCarSetupScreen | ( | MenuWidget * | pWidget | ) |
| pWidget | The item chosen, unread. |
| int BuildCarSetupUI | ( | MenuScreen * | pScreen | ) |
Build car selection and handling controls on the supplied screen.
| pScreen | The screen to populate. |
| int OnListDialogItemSelected | ( | MenuWidget * | pWidget | ) |
Advance to pre-race information and discard the points dialog.
| pWidget | The selected dialog item. |
| int OnPressAnyKeyContinue | ( | MenuWidget * | pWidget | ) |
Advance to pre-race information and reset the season totals after congratulations.
| pWidget | The continue item. |
| int ValidateEntityState | ( | MenuWidget * | pWidget | ) |
Update a menu item's font and sprite for its active state.
| pWidget | The menu item to validate. |
| int ValidateEntityStateAlwaysTrue | ( | MenuWidget * | pWidget | ) |
Update a menu item's active state while always accepting the update.
| pWidget | The menu item to validate. |
| int ProcessCheatInputAndValidateEntity | ( | MenuWidget * | pWidget | ) |
Process cheat-code input and update the menu item's active state.
| pWidget | The menu item to validate. |
| int BuildMultiplayerConnectionUI | ( | MenuScreen * | pScreen | ) |
Build connection-provider choices on the supplied screen.
| pScreen | The screen to populate. |
| int ShowMultiplayerConnectionScreen | ( | MenuWidget * | pWidget = nullptr | ) |
Open cached connection settings, building the screen on its first visit.
| int RaceResultsPanel_PreUpdateSelectLastRace | ( | void | ) |
Display the previous race's season position in the results panel.
| int RaceResultsPanel_PostUpdateRestoreSeasonProgress | ( | void | ) |
Restore the current season position after drawing the results panel.
| bool InitializeFrontEndResources | ( | void | ) |
Set up the front end.
The paths of the 145 menu images are allocated and filled, the resources are reset, the root screen is created as the active one, the scratch buffer is allocated, and the paths of the saved season and ghost and the rectangles of the sprites are set.
| int ShowNetworkCarSetupScreen | ( | MenuWidget * | pWidget = nullptr | ) |
Open car setup for network play and update the host session settings.
| pWidget | Unused. |
| int BuildNetworkCarSetupUI | ( | MenuScreen * | pScreen | ) |
Build player, car, and chat controls for network car setup.
| pScreen | The screen to populate. |
| int CompleteConnectionTextEdit | ( | MenuWidget * | pWidget | ) |
Accept the edited text of a connection field.
The linker folds the routine with the other routines that return 1.
| pWidget | Not read. |
| int IsGameCdInDrive | ( | int | nDrive | ) |
Check whether a drive contains a CD-ROM volume labelled Boss Rally.
| nDrive | The drive number, with A as one. |
| int FindGameCdDrive | ( | void | ) |
Search CD-ROM drives for the Boss Rally disc and restore the original working directory.
| int ShowChampionshipSeasonMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | The item chosen, unread. |
| int BuildChampionshipSeasonUI | ( | MenuScreen * | pScreen | ) |
Build the championship season-selection screen.
| pScreen | The screen to populate. |
| int BuildSaveTimeAttackMenuUI | ( | MenuScreen * | pScreen | ) |
Build the time-attack save-slot screen.
| pScreen | The screen to populate. |
| int ShowLoadGhostMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | Not read. |
| int ShowHostRaceSetupScreen | ( | MenuWidget * | pWidget | ) |
Host a session and show the race setup of the network game.
| pWidget | The widget of the action. Not read, and the direct callers pass null. |
| int ShowCreateGameScreen | ( | MenuWidget * | pWidget | ) |
Show the screen that creates a network game.
| pWidget | The widget of the action. Not read, and the direct callers pass null. |
| int ShowMultiplayerNameScreen | ( | MenuWidget * | pWidget | ) |
| pWidget | The item chosen, or null from the lobby; unread. |
| int ShowJoinCreateGameScreen | ( | MenuWidget * | pWidget | ) |
| pWidget | The item of the chosen service provider, or null from the lobby; unread. |
| int ShowSeasonProgressInfoScreen | ( | MenuWidget * | pWidget = nullptr | ) |
Open the season progress screen with the currently selected round.
| pWidget | Unused. |
| int ShowRaceSetupMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | The item chosen, unread. |
| int ShowQuitGameConfirmMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | The item chosen, unread. |
| int BuildTimeAttackMenuUI | ( | MenuScreen * | pScreen | ) |
Build the time-attack setup screen.
| pScreen | The screen to populate. |
| int BuildLoadTimeAttackMenuUI | ( | MenuScreen * | pScreen | ) |
Build the time-attack load-slot screen.
| pScreen | The screen to populate. |
| int BuildMultiplayerGameSetupUI | ( | MenuScreen * | pScreen | ) |
Build race settings for a network game.
| pScreen | The screen to populate. |
| int BuildPlayerNameEntryUI | ( | MenuScreen * | pScreen | ) |
Build the player-name entry screen for network play.
| pScreen | The screen to populate. |
| int BuildJoinCreateGameUI | ( | MenuScreen * | pScreen | ) |
Build the menu for joining or creating a network game.
| pScreen | The screen to populate. |
| int BuildCreateGameMenuUI | ( | MenuScreen * | pScreen | ) |
Build the network game-creation screen.
| pScreen | The screen to populate. |
| int JoinSessionAndShowRaceSetup | ( | MenuWidget * | pWidget = nullptr | ) |
| pWidget | Not read. |
| int BuildSeasonProgressInfoUI | ( | MenuScreen * | pScreen | ) |
Build the current championship progress screen.
| pScreen | The screen to populate. |
| int BuildRaceSetupUI | ( | MenuScreen * | pScreen | ) |
Build track, car, and weather settings for an arcade race.
| pScreen | The screen to populate. |
| int BuildQuitGameConfirmUI | ( | MenuScreen * | pScreen | ) |
Build the confirmation screen for quitting the game.
| pScreen | The screen to populate. |
| int ShowOptionsMenu | ( | MenuWidget * | pWidget | ) |
| pWidget | The item chosen, unread. |
| int BuildOptionsMenuUI | ( | MenuScreen * | pScreen | ) |
Build the main options menu.
| pScreen | The screen to populate. |
| void SetActiveMenuItemText | ( | const char * | pszText | ) |
Set the root menu item's text when the item exists.
| pszText | The text to display. |
| int BuildFrontEndRootMenuUI | ( | MenuScreen * | pScreen | ) |
Build the items of the root screen of the front end.
| pScreen | The screen. |
| void InitMenuSpriteRects | ( | void | ) |
Set the rectangles of the sprites of the menus.
| bool InitMenuSurfaces | ( | void | ) |
Create g_pMenuFrameSurface, show the loading screen unless this is the first call, and load every menu image with its colour key.
| void RestoreMenuSelections | ( | void | ) |
Copy adwMenuSelectionBackup of g_GlobalRallyConfig and its other settings back into the choices of the menus.
The input device of the configuration is taken from the choice of the menu before the choice is restored, and a restored choice of 1 becomes 2. The cars and tracks the choices unlocked are added to the selectable ones.
| int ShowRaceResultsScreen | ( | void | ) |
Show the screen of the results of a race.
| int ReturnToNetworkLobbyScreen | ( | void | ) |
Show the lobby of network play again after a race.
| int ShowTimeAttackMenu | ( | MenuWidget * | pWidget | ) |
Show the menu of a finished time attack, when it is not shown already.
| pWidget | The item chosen, or null after a race; unread. |
| int ShowSaveGhostMenu | ( | int | nUnused | ) |
Show the menu to save the ghost car of a time attack, when it is not shown already.
| nUnused | Not read. |
| int EnterTimeAttackMode | ( | void | ) |
Enter the time attack mode, first showing the menus of a finished time attack when the first vehicle has driven every lap.
| void EnterNetworkLobbyScreen | ( | void | ) |
Show the lobby of network play.
| bool RestoreMenuSurfaces | ( | void | ) |
Restore the surfaces of the loaded menu images and load their bitmaps into them again.
| bool ReleaseMenuSurfacesAndFail | ( | HWND | hWnd | ) |
Release the surfaces of the menu images and exit the game.
| hWnd | Not read. |
Draw a part of a menu image into the back buffer.
The cursor is clipped to the screen of the menus. A lost surface restores the menu images and the part is not drawn. The Glide library copies the part into g_pMenuFrameSurface with BlitRgb565ImageRegion().
| nDestX | The left to draw at. |
| nDestY | The top to draw at. |
| wImage | The index in g_aMenuImages of the image. |
| pRect | The part of the image. |
| dwFlags | The flags of BltFast(). DDBLTFAST_WAIT is added. |
| void ReleaseMenuSurfaces | ( | void | ) |
Release the surfaces of the loaded menu images.
The Glide library frees its images and the surface of the menu frame instead.
| void Cheat_Hazel_UnlockAllTracks | ( | void | ) |
Unlock every track, play the sound of a cheat, and set the network menus to state 2.
| void Cheat_Brielle_UnlockBonusTracks | ( | void | ) |
Unlock the bonus tracks, play the sound of a cheat, and set the network menus to state 2.
| void Cheat_DisableVehicleDeformation | ( | void | ) |
Stop the vehicles deforming, play the sound of this cheat, and set the network menus to state 3.
| void Cheat_Sophia_EnableOutroSequence | ( | void | ) |
Show the closing sequence, play the sound of a cheat, and set the network menus to state 2.
| void Cheat_Lynette_UnlockBonusCars | ( | void | ) |
Unlock the bonus cars, play the sound of a cheat, and set the network menus to state 2.
| void Cheat_Benjamin_UnlockAllCars | ( | void | ) |
Unlock every car, play the sound of a cheat, and set the network menus to state 2.
| void ProcessCheatCodeInput | ( | void | ) |
Add the last character the window received to the characters of the cheats, in lowercase, and apply each cheat whose word they end with.
| void CheckCheatCodeMatches | ( | void | ) |
Apply each cheat whose word the characters of the cheats end with.
| void ApplyCarGroupPreset | ( | void | ) |
Set the cars of the chosen class and choose the first of them, when the class changed since the last call.
An unknown class takes the cars of the first.
| int IsCarSelectable | ( | int | nCar | ) |
Report whether a car can be chosen in the current mode of the game.
| nCar | The car. |
| void ResetGameModeConfig | ( | void | ) |
Reset the track, the weather, the car and its settings, and the input device, to the keyboard, for a new game mode.
| LRESULT WINAPI FrontEndWindowProc | ( | void * | pUnused, |
| HWND | hWnd, | ||
| UINT | nMessage, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
Give a message of the main window to the front end.
| pUnused | Not read. |
| hWnd | The main window. |
| nMessage | The message. |
| wParam | The first parameter of the message. |
| lParam | The second parameter of the message. |
| char LookupKeyCharacter | ( | DWORD | dwKey | ) |
The character a key of text input types.
| dwKey | The key. |
| unsigned IsTrackSelectable | ( | int | nTrack | ) |
Report a track's selection mask or a cheat override.
| nTrack | The track menu index. |
| int BuildRaceResultsInfoUI | ( | MenuScreen * | pScreen | ) |
Build the race-results information screen.
| pScreen | The screen to populate. |
| int BuildRaceResultsSummaryUI | ( | MenuScreen * | pScreen | ) |
Build the race-results summary screen.
| pScreen | The screen to populate. |
| int BuildRaceResultsTotalsUI | ( | MenuScreen * | pScreen | ) |
Build the race-results totals screen.
| pScreen | The screen to populate. |
| int BuildResultsSummaryExitSeasonConfirmUI | ( | MenuScreen * | pScreen | ) |
Build confirmation for exiting a season after the results summary.
| pScreen | The screen to populate. |
| int BuildSeasonCongratsUI | ( | MenuScreen * | pScreen | ) |
Build the championship congratulations screen.
| pScreen | The screen to populate. |
| int BuildNotEnoughPointsUI | ( | MenuScreen * | pScreen | ) |
Build the insufficient-points screen after a championship race.
| pScreen | The screen to populate. |
| int ShowSeasonCongratsScreen | ( | MenuWidget * | pWidget | ) |
Show cached championship congratulations, building the screen on its first visit.
| pWidget | The item chosen, unread. |
| int ShowNotEnoughPointsScreen | ( | MenuWidget * | pWidget | ) |
Show cached championship failure results, building the screen on its first visit.
| pWidget | The item chosen, unread. |
| int ShowRaceResultsTotalsScreen | ( | MenuWidget * | pWidget = nullptr | ) |
Show cached race totals, building the screen on its first visit.
| int ShowRaceResultsSummaryScreen | ( | MenuWidget * | pWidget = nullptr | ) |
Show cached race summary results and build an exit confirmation on the first visit.
| int BuildPreRaceInfoUI | ( | MenuScreen * | pScreen | ) |
Build the pre-race information screen.
| pScreen | The screen to populate. |
| int BuildPreRaceExitSeasonConfirmUI | ( | MenuScreen * | pScreen | ) |
Build confirmation for exiting a season before a race.
| pScreen | The screen to populate. |
| int ShowPreRaceInfoScreen | ( | MenuWidget * | pWidget | ) |
Show cached pre-race information and build an exit confirmation on the first visit.
| pWidget | The item chosen, unread. |
| int BuildLoadSeasonUI | ( | MenuScreen * | pScreen | ) |
Build the saved-season selection screen.
| pScreen | The screen to populate. |
| int BuildSaveSeasonUI | ( | MenuScreen * | pScreen | ) |
Build the season save-slot screen.
| pScreen | The screen to populate. |
| int ShowLoadSeasonMenu | ( | MenuWidget * | pWidget | ) |
Show cached season loading, building the screen on its first visit.
| pWidget | Not read. |
| int ShowSaveSeasonScreen | ( | MenuWidget * | pWidget | ) |
Show cached season saving, building the screen on its first visit.
| pWidget | The item chosen, unread. |
|
extern |
The selected row in the display-mode list, updated by Direct3D and Glide device selection.
|
extern |
The entry of the list of display modes in use.
|
extern |
The menu bounds of the display-device list.
|
extern |
Flags marking duplicate bindings in each key-configuration row.
|
extern |
The screen of the front end that is showing.
|
extern |
The list of sessions of the screen to join or create a network game, while it exists.
|
extern |
A buffer of the front end, passed to FrontEndWindowProc() and not read by it.
|
extern |
The images of the menus.
|
extern |
The number of entries of g_aMenuImages loaded.
|
extern |
The screen the front end starts at.
|
extern |
The cached screen of the setup of a network race.
|
extern |
The cached screen of the settings of the game.
|
extern |
The cached screen of the championship.
|
extern |
The item that continues from the name of the player.
|
extern |
The menu of the setup of a network game.
|
extern |
Bounds used for the centre panel of the multiplayer session list.
|
extern |
Bounds of the network player list beside the session menu.
|
extern |
A one-space string used by menu labels and the Glide texture cache.
|
extern |
The menu to save a time attack.
|
extern |
The field of the name of a saved time attack.
|
extern |
The menu to join a network session.
|
extern |
The menu of the setup of the car of network play.
|
extern |
The list of the players of network play.
|
extern |
The item that continues from the modem screen.
|
extern |
The menu that chooses the display mode.
|
extern |
The menu that chooses the Direct3D device.
|
extern |
The 16 by 16 glyphs of the menus, eight to a row.
|
extern |
The 39 by 44 glyphs of the menus, five to a row.
|
extern |
The sprites of the menus.
The first is the whole of the loading image.
|
extern |
The number of times the menu images were loaded.
Every load but the first shows the loading image first.
|
extern |
The frame the menus are drawn into, the size of the frame buffer.
|
extern |
Whether ActivateMenuScreen() is entering the screen the game returns to.
|
extern |
Whether the lobby was entered for a game launched from a lobby.
|
extern |
The state of the network menus.
A state of 2 or 3 delays ShutdownFrontEnd().
|
extern |
Whether the cheat that unlocks every track was entered.
|
extern |
Whether the cheat that unlocks the bonus tracks was entered.
|
extern |
Whether the cheat that unlocks the bonus cars was entered.
|
extern |
Whether the cheat that shows the closing sequence was entered.
|
extern |
Whether the cheat that unlocks every car was entered.
|
extern |
The cheats, ended by an entry without a word.
|
extern |
The last characters typed for the cheats, a ring that wraps at its end.
|
extern |
The entry of g_anCheatInputBuffer the next character fills.
|
extern |
The last character the window received, or 0 once it is read.
|
extern |
The index of the network session chosen in the list of sessions.
|
extern |
The track of the CD the menus show, counted from the first music track.
|
extern |
Whether the list of network sessions is refreshing.
No frame is flipped while it refreshes.
|
extern |
The chosen track.
|
extern |
The chosen weather.
|
extern |
An unused value cleared with the menu selections.
|
extern |
The chosen class of car.
|
extern |
The errors of the game, indexed by the code of the error.
|
extern |
The keys of text input, each typing the printable character of its own code.