Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
optmenu.c File Reference

Text input and modal text panels. More...

#include "game.h"

Go to the source code of this file.

Functions

void EraseLastTextInputCharacter (void)
void EraseTextContextBackground (TextContext *context)
void DrawTextInputCursor (char character)
void EraseCharacterAfterTextCursor (char character)
void ClearTextInputCharacter (char character)
short InitializeModalTextPanel (ModalTextPanel *panel, short fontIndex, ModalPanelBounds bounds, short clearColour, short backgroundColour, short borderColour)
void DrawModalTextPanel (ModalTextPanel *panel, short x, short y, unsigned char alignment, const char *format,...)
void RestoreModalTextPanel (ModalTextPanel *panel)
short ShowModalTextPanel (short fontIndex, const char *format,...)
void ReleaseModalTextPanel (void)
short ReadTextInput (char *destination, short maximumLength, volatile short mode, volatile short allowPathSeparators)
short ReadPersonnelTextField (unsigned int x, unsigned int y, int font, const char *prompt, char *destination, int maximumLength, int mode, int required)
short PollCampaignChalkboardMenu (unsigned char *scene)
short RunCampaignChalkboardMenu (short campaignSlot)

Variables

unsigned char g_abTaggedAllocationPrefix [8]
ShortRect g_stModalBounds = {0x18, 0x28, 0x128, 0x3c}
ModalTextPanel * g_pModalTextPanel = 0
unsigned char * g_pCampaignChalkboardShape = 0
short g_bDisableChalkboardReplay = 0

Detailed Description

Text input and modal text panels.

Definition in file optmenu.c.

Function Documentation

◆ ClearTextInputCharacter()

◆ DrawModalTextPanel()

void DrawModalTextPanel ( ModalTextPanel * panel,
short x,
short y,
unsigned char alignment,
const char * format,
... )

◆ DrawTextInputCursor()

◆ EraseCharacterAfterTextCursor()

void EraseCharacterAfterTextCursor ( char character)

◆ EraseLastTextInputCharacter()

◆ EraseTextContextBackground()

◆ InitializeModalTextPanel()

◆ PollCampaignChalkboardMenu()

◆ ReadPersonnelTextField()

short ReadPersonnelTextField ( unsigned int x,
unsigned int y,
int font,
const char * prompt,
char * destination,
int maximumLength,
int mode,
int required )

◆ ReadTextInput()

◆ ReleaseModalTextPanel()

◆ RestoreModalTextPanel()

◆ RunCampaignChalkboardMenu()

◆ ShowModalTextPanel()

Variable Documentation

◆ g_abTaggedAllocationPrefix

unsigned char g_abTaggedAllocationPrefix[8]
Initial value:
= {
'j', 'e', 'f', 'f', 0, 0, 0, 0
}

Definition at line 8 of file optmenu.c.

Referenced by AllocateTaggedMemory().

◆ g_bDisableChalkboardReplay

short g_bDisableChalkboardReplay = 0

Definition at line 14 of file optmenu.c.

Referenced by PollSceneHotspotInput(), and RunCampaignChalkboardMenu().

◆ g_pCampaignChalkboardShape

unsigned char* g_pCampaignChalkboardShape = 0

◆ g_pModalTextPanel

ModalTextPanel* g_pModalTextPanel = 0

Definition at line 12 of file optmenu.c.

Referenced by ReleaseModalTextPanel(), and ShowModalTextPanel().

◆ g_stModalBounds

ShortRect g_stModalBounds = {0x18, 0x28, 0x128, 0x3c}

Definition at line 11 of file optmenu.c.

Referenced by ShowModalTextPanel().