File: contexthelp.h

package info (click to toggle)
freespace2 3.7.4%2Brepack-1.1
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 22,268 kB
  • sloc: cpp: 393,535; ansic: 4,106; makefile: 1,091; xml: 181; sh: 137
file content (57 lines) | stat: -rw-r--r-- 2,177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * Copyright (C) Volition, Inc. 1999.  All rights reserved.
 *
 * All source code herein is the property of Volition, Inc. You may not sell 
 * or otherwise commercially exploit the source or things you created based on the 
 * source.
 *
*/ 

// ContextHelp.h
//
//

#ifndef __CONTEXTHELP_H__
#define __CONTEXTHELP_H__

// Help overlays
//
#define	MAX_HELP_OVERLAYS				30

#define	SS_OVERLAY						"ship"	// ship selection help
#define	WL_OVERLAY						"weapon"	// weapons loadout help
#define	BR_OVERLAY						"briefing"	// briefing help
#define	MH_OVERLAY						"main"	// main hall help
#define	BARRACKS_OVERLAY				"barracks"	// barracks help
#define	CONTROL_CONFIG_OVERLAY		"control"	// control config help
#define	DEBRIEFING_OVERLAY			"debrief"	// debriefing help
#define	MULTI_CREATE_OVERLAY			"multicreate"	// multi create game help
#define	MULTI_START_OVERLAY			"multistart"	// multi start game help overlay
#define	MULTI_JOIN_OVERLAY			"multijoin"	// join game help overlay
#define	MH2_OVERLAY						"main2"	// main hall 2 help overlay
#define	HOTKEY_OVERLAY					"hotkey" // hotkey assignment help overlay
#define	CAMPAIGN_ROOM_OVERLAY		"campaign" // campaign room help overlay
#define	SIM_ROOM_OVERLAY				"simulator"	// sim room help overlay
#define	TECH_ROOM_OVERLAY				"tech"	// tech room (general) help overlay
#define	CMD_BRIEF_OVERLAY				"command" // command briefing help overlay

// other help overlay constants
#define HELP_PADDING		1							//
#define HELP_MAX_NAME_LENGTH	32			// max string length for overlay name
#define HELP_MAX_STRING_LENGTH	128			// max string length for text overlay element
#define HELP_PLINE_THICKNESS		2
#define HELP_OVERLAY_FILENAME		"help.tbl"

// help overlay calls
int	help_overlay_get_index(const char* overlay_name);
int	help_overlay_active(int overlay_id);
void	help_overlay_set_state(int overlay_id, int resolution_index, int state);
void	help_overlay_maybe_blit(int overlay_id, int resolution_index);

void context_help_init();			// called once at game startup
void context_help_grey_screen();	// call to grey out a screen (normally when applying a help overlay)

void launch_context_help();


#endif /* __CONTEXTHELP_H__ */