2016-03-31 02:38:57 +02:00
|
|
|
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
2016-03-13 22:52:32 +01:00
|
|
|
|
|
|
|
#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) \
|
2016-03-31 21:43:28 +02:00
|
|
|
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-15 22:24:35 +01:00
|
|
|
|
|
|
|
|
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. */
|