|
Wing Commander II
Reconstructed Win32 source (1996)
|
Formatted text output. More...
#include "game.h"Go to the source code of this file.
Functions | |
| void | EmitTextString (void(*writer)(int), const char *text) |
| void | FormatTextTokens (void(*writer)(int), const char *format, va_list arguments) |
| void | DrawFormattedText (const char *format,...) |
| void | FormatTextBufferFromStart (const char *format,...) |
| void | AppendFormattedText (const char *format,...) |
Formatted text output.
Definition in file textfmt.c.
| void AppendFormattedText | ( | const char * | format, |
| ... ) |
Definition at line 141 of file textfmt.c.
References AppendFormattedText(), AppendTextCharacter(), FormatTextTokens(), g_101_stScrViewInfo, g_29_pCurrentTextContext, MarkDibDirty(), Viewport::pixels, and TextContext::viewport.
Referenced by AppendFormattedText().
| void DrawFormattedText | ( | const char * | format, |
| ... ) |
Definition at line 103 of file textfmt.c.
References DrawCinematicFontCharacter(), DrawFormattedText(), DrawTextCharacter(), FormatTextTokens(), g_101_stScrViewInfo, g_29_pCurrentTextContext, g_9_bCinematicSpriteTextEnableStatus, MarkDibDirty(), Viewport::pixels, and TextContext::viewport.
Referenced by DrawCockpitReadout(), DrawFormattedText(), DrawNavMapLabels(), DrawPersonnelFileSlot(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), DrawTextInputCursor(), DrawTransferredPilotRow(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), PresentCutsceneFrame(), ReadPersonnelTextField(), ReadTextInput(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectTransferredPilot(), show_communications_disp(), show_navigation_disp(), show_target_disp(), show_weapon_disp(), ShowMemoryStatusDebug(), ShowNoTransferablePilots(), and UpdateInflightNavText().
Definition at line 9 of file textfmt.c.
References EmitTextString().
Referenced by EmitTextString(), and FormatTextTokens().
| void FormatTextBufferFromStart | ( | const char * | format, |
| ... ) |
Definition at line 123 of file textfmt.c.
References AppendTextCharacter(), FormatTextBufferFromStart(), FormatTextTokens(), g_101_stScrViewInfo, g_29_pCurrentTextContext, MarkDibDirty(), Viewport::pixels, TextContext::text, TextContext::textCursor, and TextContext::viewport.
Referenced by DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), DrawModalTextPanel(), ExecuteCutsceneSequence(), FormatTextBufferFromStart(), and UpdateMap().
Definition at line 18 of file textfmt.c.
References TextContext::alignment, TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, TextContext::cursorY, DrawTextString(), DrawWrappedCinematicText(), EmitTextString(), FormatTextTokens(), g_29_pCurrentTextContext, g_9_bCinematicSpriteTextEnableStatus, and TextContext::text.
Referenced by AppendFormattedText(), DrawFormattedText(), DrawNavTextLine(), FormatTextBufferFromStart(), and FormatTextTokens().