65typedef enum ntmask_s {
72typedef 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)
86typedef struct messageSettings_s {
92#define MAX_MESSAGECATEGORIES 16
93typedef struct msgCategoryEntry_s {
96 struct msgCategoryEntry_s*
next;
102typedef struct msgCategory_s {
114void MSO_Set(
const int listIndex,
const notify_t type,
const int optionType,
const bool activate,
const bool sendCommands);
messageSettings_t messageSettings[NT_NUM_NOTIFYTYPE]
char const *const nt_strings[NT_NUM_NOTIFYTYPE]
valid notification types that may cause pause / notice
@ NT_PRODUCTION_QUEUE_EMPTY
@ NT_AIRCRAFT_CANNOTREFUEL
@ NT_TRANSFER_UFORECOVERY_FINISHED
@ NT_INSTALLATION_DESTROY
@ NT_AIRCRAFT_ARRIVEDHOME
@ NT_INSTALLATION_INSTALLED
@ NT_TRANSFER_COMPLETED_SUCCESS
@ NT_INSTALLATION_REPLACE
@ NT_INSTALLATION_BUILDFINISH
@ NT_INSTALLATION_REMOVED
@ NT_INSTALLATION_BUILDSTART
@ NT_TRANSFER_ALIENBODIES_DEFERED
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.
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...
notifyMask_t
bitmask values for storing msgoptions
msgCategoryMask_t
bitmask values for storing msgcategory state
void MSO_ParseMessageSettings(const char *name, const char **text)
parses message options settings from file.
QGL_EXTERN GLint GLenum type
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
structure holding pause and notify settings for a notify type.
msgCategoryEntry_t * first
msgCategoryEntry_t * last
struct msgCategoryEntry_s * previous
struct msgCategoryEntry_s * next
struct msgCategory_s * category
messageSettings_t * settings
This is the technology parsed from research.ufo.