FS2_Open
Open source remastering of the Freespace 2 engine
contexthelp.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 // ContextHelp.h
11 //
12 //
13 
14 #ifndef __CONTEXTHELP_H__
15 #define __CONTEXTHELP_H__
16 
17 // Help overlays
18 //
19 #define MAX_HELP_OVERLAYS 30
20 
21 #define SS_OVERLAY "ship" // ship selection help
22 #define WL_OVERLAY "weapon" // weapons loadout help
23 #define BR_OVERLAY "briefing" // briefing help
24 #define MH_OVERLAY "main" // main hall help
25 #define BARRACKS_OVERLAY "barracks" // barracks help
26 #define CONTROL_CONFIG_OVERLAY "control" // control config help
27 #define DEBRIEFING_OVERLAY "debrief" // debriefing help
28 #define MULTI_CREATE_OVERLAY "multicreate" // multi create game help
29 #define MULTI_START_OVERLAY "multistart" // multi start game help overlay
30 #define MULTI_JOIN_OVERLAY "multijoin" // join game help overlay
31 #define MH2_OVERLAY "main2" // main hall 2 help overlay
32 #define HOTKEY_OVERLAY "hotkey" // hotkey assignment help overlay
33 #define CAMPAIGN_ROOM_OVERLAY "campaign" // campaign room help overlay
34 #define SIM_ROOM_OVERLAY "simulator" // sim room help overlay
35 #define TECH_ROOM_OVERLAY "tech" // tech room (general) help overlay
36 #define CMD_BRIEF_OVERLAY "command" // command briefing help overlay
37 
38 // other help overlay constants
39 #define HELP_PADDING 1 //
40 #define HELP_MAX_NAME_LENGTH 32 // max string length for overlay name
41 #define HELP_MAX_STRING_LENGTH 128 // max string length for text overlay element
42 #define HELP_PLINE_THICKNESS 2
43 #define HELP_OVERLAY_FILENAME "help.tbl"
44 
45 // help overlay calls
46 int help_overlay_get_index(const char* overlay_name);
47 int help_overlay_active(int overlay_id);
48 void help_overlay_set_state(int overlay_id, int resolution_index, int state);
49 void help_overlay_maybe_blit(int overlay_id, int resolution_index);
50 
51 void context_help_init(); // called once at game startup
52 void context_help_grey_screen(); // call to grey out a screen (normally when applying a help overlay)
53 
54 void launch_context_help();
55 
56 
57 #endif /* __CONTEXTHELP_H__ */
void help_overlay_set_state(int overlay_id, int resolution_index, int state)
void launch_context_help()
void context_help_init()
int help_overlay_active(int overlay_id)
int help_overlay_get_index(const char *overlay_name)
void context_help_grey_screen()
void help_overlay_maybe_blit(int overlay_id, int resolution_index)