2016-03-13 22:52:32 +01:00
|
|
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
|
|
|
|
#ifndef SE_INCL_MENU_STUFF_H
|
|
|
|
#define SE_INCL_MENU_STUFF_H
|
|
|
|
#ifdef PRAGMA_ONCE
|
|
|
|
#pragma once
|
|
|
|
#endif
|
|
|
|
|
2016-03-15 22:24:35 +01:00
|
|
|
#include "FileInfo.h"
|
|
|
|
|
|
|
|
#define TRIGGER_MG(mg, y, up, down, text, astr) \
|
|
|
|
mg.mg_pmgUp = &up; \
|
|
|
|
mg.mg_pmgDown = &down; \
|
|
|
|
mg.mg_boxOnScreen = BoxMediumRow(y); \
|
|
|
|
gm_lhGadgets.AddTail(mg.mg_lnNode); \
|
|
|
|
mg.mg_astrTexts = astr; \
|
|
|
|
mg.mg_ctTexts = sizeof(astr) / sizeof(astr[0]); \
|
|
|
|
mg.mg_iSelected = 0; \
|
|
|
|
mg.mg_strLabel = text; \
|
|
|
|
mg.mg_strValue = astr[0];
|
|
|
|
|
|
|
|
|
2016-03-14 23:03:22 +01:00
|
|
|
extern INDEX ctGameTypeRadioTexts;
|
|
|
|
|
|
|
|
extern CTString astrNoYes[2];
|
|
|
|
extern CTString astrWeapon[4];
|
|
|
|
extern CTString astrComputerInvoke[2];
|
|
|
|
extern CTString astrCrosshair[8];
|
|
|
|
extern CTString astrMaxPlayersRadioTexts[15];
|
|
|
|
extern CTString astrGameTypeRadioTexts[20];
|
|
|
|
extern CTString astrDifficultyRadioTexts[6];
|
|
|
|
extern CTString astrSplitScreenRadioTexts[4];
|
|
|
|
extern CTString astrDisplayPrefsRadioTexts[4];
|
|
|
|
extern CTString astrDisplayAPIRadioTexts[2];
|
|
|
|
extern CTString astrBitsPerPixelRadioTexts[3];
|
|
|
|
extern CTString astrFrequencyRadioTexts[4];
|
|
|
|
extern CTString astrSoundAPIRadioTexts[3];
|
|
|
|
|
2016-03-30 18:23:12 +02:00
|
|
|
extern PIX apixWidths[20][2];
|
|
|
|
|
2016-03-13 22:52:32 +01:00
|
|
|
ULONG GetSpawnFlagsForGameType(INDEX iGameType);
|
|
|
|
BOOL IsMenuEnabled(const CTString &strMenuName);
|
2016-03-16 19:43:05 +01:00
|
|
|
void InitGameTypes(void);
|
2016-03-13 22:52:32 +01:00
|
|
|
|
2016-03-15 22:24:35 +01:00
|
|
|
int qsort_CompareFileInfos_NameUp(const void *elem1, const void *elem2);
|
|
|
|
int qsort_CompareFileInfos_NameDn(const void *elem1, const void *elem2);
|
|
|
|
int qsort_CompareFileInfos_FileUp(const void *elem1, const void *elem2);
|
|
|
|
int qsort_CompareFileInfos_FileDn(const void *elem1, const void *elem2);
|
|
|
|
|
2016-03-30 18:23:12 +02:00
|
|
|
INDEX APIToSwitch(enum GfxAPIType gat);
|
|
|
|
enum GfxAPIType SwitchToAPI(INDEX i);
|
|
|
|
INDEX DepthToSwitch(enum DisplayDepth dd);
|
|
|
|
enum DisplayDepth SwitchToDepth(INDEX i);
|
|
|
|
|
2016-03-30 22:09:51 +02:00
|
|
|
void ControlsMenuOn();
|
|
|
|
void ControlsMenuOff();
|
|
|
|
|
2016-03-13 22:52:32 +01:00
|
|
|
#endif /* include-once check. */
|