65 typedef enum ntmask_s {
72 typedef enum msgcategorymask_s {
77 #define MSO_PAUSE (NTMASK_PAUSE | NTMASK_NOTIFY) 79 #define MSO_NOTIFY (NTMASK_NOTIFY) 81 #define MSO_SOUND (NTMASK_SOUND | NTMASK_NOTIFY) 86 typedef struct messageSettings_s {
92 #define MAX_MESSAGECATEGORIES 16 93 typedef struct msgCategoryEntry_s {
96 struct msgCategoryEntry_s*
next;
102 typedef struct msgCategory_s {
114 void MSO_Set(
const int listIndex,
const notify_t type,
const int optionType,
const bool activate,
const bool sendCommands);
struct msgCategory_s * category
messageSettings_t messageSettings[NT_NUM_NOTIFYTYPE]
QGL_EXTERN GLint GLenum type
msgCategoryEntry_t * first
msgCategoryMask_t
bitmask values for storing msgcategory state
notifyMask_t
bitmask values for storing msgoptions
struct msgCategoryEntry_s * next
void MSO_Set(const int listIndex, const notify_t type, const int optionType, const bool activate, const bool sendCommands)
Function updates pause or notification settings.
messageSettings_t * settings
void MSO_ParseMessageSettings(const char *name, const char **text)
parses message options settings from file.
struct msgCategoryEntry_s * previous
msgCategoryEntry_t * last
This is the technology parsed from research.ufo.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
structure holding pause and notify settings for a notify type.
uiMessageListNodeMessage_t * MSO_CheckAddNewMessage(const notify_t messagecategory, const char *title, const char *text, messageType_t type=MSG_STANDARD, technology_t *pedia=nullptr, bool popup=false)
Adds a new message to message stack. It uses message settings to verify whether sound should be playe...
char const *const nt_strings[NT_NUM_NOTIFYTYPE]
valid notification types that may cause pause / notice