mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
GameExecutable: Get rid of CMENU preprocessor.
Use preprocessor for making the code shorter was bad idea. It makes weird code parser, shows a lot of false errors and breaks code highlighting(blinking).
This commit is contained in:
parent
e9267112a1
commit
3aa14342b3
File diff suppressed because it is too large
Load Diff
|
@ -87,38 +87,48 @@ void StartSinglePlayerNewMenuCustom(void)
|
||||||
|
|
||||||
static void SetQuickLoadNotes(void)
|
static void SetQuickLoadNotes(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
if (_pShell->GetINDEX("gam_iQuickSaveSlots") <= 8) {
|
if (_pShell->GetINDEX("gam_iQuickSaveSlots") <= 8) {
|
||||||
_pGUIM->gmLoadSaveMenu.gm_mgNotes.mg_strText = TRANS(
|
gmCurrent.gm_mgNotes.mg_strText = TRANS(
|
||||||
"In-game QuickSave shortcuts:\n"
|
"In-game QuickSave shortcuts:\n"
|
||||||
"F6 - save a new QuickSave\n"
|
"F6 - save a new QuickSave\n"
|
||||||
"F9 - load the last QuickSave\n");
|
"F9 - load the last QuickSave\n");
|
||||||
} else {
|
} else {
|
||||||
_pGUIM->gmLoadSaveMenu.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern CTString sam_strFirstLevel;
|
||||||
|
|
||||||
void StartSinglePlayerNewMenu(void)
|
void StartSinglePlayerNewMenu(void)
|
||||||
{
|
{
|
||||||
_pGUIM->gmSinglePlayerNewMenu.gm_pgmParentMenu = &_pGUIM->gmSinglePlayerMenu;
|
CVarMenu &gmCurrent = _pGUIM->gmVarMenu;
|
||||||
extern CTString sam_strFirstLevel;
|
|
||||||
_pGame->gam_strCustomLevel = sam_strFirstLevel;
|
_pGame->gam_strCustomLevel = sam_strFirstLevel;
|
||||||
ChangeToMenu(&_pGUIM->gmSinglePlayerNewMenu);
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmSinglePlayerMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
// game options var settings
|
// game options var settings
|
||||||
void StartVarGameOptions(void)
|
void StartVarGameOptions(void)
|
||||||
{
|
{
|
||||||
_pGUIM->gmVarMenu.gm_mgTitle.mg_strText = TRANS("GAME OPTIONS");
|
CVarMenu &gmCurrent = _pGUIM->gmVarMenu;
|
||||||
_pGUIM->gmVarMenu.gm_fnmMenuCFG = CTFILENAME("Scripts\\Menu\\GameOptions.cfg");
|
|
||||||
ChangeToMenu(&_pGUIM->gmVarMenu);
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("GAME OPTIONS");
|
||||||
|
gmCurrent.gm_fnmMenuCFG = CTFILENAME("Scripts\\Menu\\GameOptions.cfg");
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSinglePlayerGameOptions(void)
|
void StartSinglePlayerGameOptions(void)
|
||||||
{
|
{
|
||||||
_pGUIM->gmVarMenu.gm_mgTitle.mg_strText = TRANS("GAME OPTIONS");
|
CVarMenu &gmCurrent = _pGUIM->gmVarMenu;
|
||||||
_pGUIM->gmVarMenu.gm_fnmMenuCFG = CTFILENAME("Scripts\\Menu\\SPOptions.cfg");
|
|
||||||
ChangeToMenu(&_pGUIM->gmVarMenu);
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("GAME OPTIONS");
|
||||||
_pGUIM->gmVarMenu.gm_pgmParentMenu = &_pGUIM->gmSinglePlayerMenu;
|
gmCurrent.gm_fnmMenuCFG = CTFILENAME("Scripts\\Menu\\SPOptions.cfg");
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmSinglePlayerMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartGameOptionsFromNetwork(void)
|
void StartGameOptionsFromNetwork(void)
|
||||||
|
@ -136,10 +146,12 @@ void StartGameOptionsFromSplitScreen(void)
|
||||||
// rendering options var settings
|
// rendering options var settings
|
||||||
void StartRenderingOptionsMenu(void)
|
void StartRenderingOptionsMenu(void)
|
||||||
{
|
{
|
||||||
_pGUIM->gmVarMenu.gm_mgTitle.mg_strText = TRANS("RENDERING OPTIONS");
|
CVarMenu &gmCurrent = _pGUIM->gmVarMenu;
|
||||||
_pGUIM->gmVarMenu.gm_fnmMenuCFG = CTFILENAME("Scripts\\Menu\\RenderingOptions.cfg");
|
|
||||||
_pGUIM->gmVarMenu.gm_pgmParentMenu = &_pGUIM->gmVideoOptionsMenu;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("RENDERING OPTIONS");
|
||||||
ChangeToMenu(&_pGUIM->gmVarMenu);
|
gmCurrent.gm_fnmMenuCFG = CTFILENAME("Scripts\\Menu\\RenderingOptions.cfg");
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmVideoOptionsMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartCustomizeKeyboardMenu(void)
|
void StartCustomizeKeyboardMenu(void)
|
||||||
|
@ -325,230 +337,251 @@ void JoinNetworkGame(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------- Servers Menu Functions
|
// -------- Servers Menu Functions
|
||||||
#define CMENU _pGUIM->gmServersMenu
|
|
||||||
|
|
||||||
void StartSelectServerLAN(void)
|
void StartSelectServerLAN(void)
|
||||||
{
|
{
|
||||||
CMENU.m_bInternet = FALSE;
|
CServersMenu &gmCurrent = _pGUIM->gmServersMenu;
|
||||||
ChangeToMenu(&CMENU);
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmNetworkJoinMenu;
|
gmCurrent.m_bInternet = FALSE;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmNetworkJoinMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectServerNET(void)
|
void StartSelectServerNET(void)
|
||||||
{
|
{
|
||||||
CMENU.m_bInternet = TRUE;
|
CServersMenu &gmCurrent = _pGUIM->gmServersMenu;
|
||||||
ChangeToMenu(&CMENU);
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmNetworkJoinMenu;
|
gmCurrent.m_bInternet = TRUE;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmNetworkJoinMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CMENU
|
|
||||||
|
|
||||||
// -------- Levels Menu Functions
|
// -------- Levels Menu Functions
|
||||||
#define CMENU _pGUIM->gmLevelsMenu
|
|
||||||
|
|
||||||
void StartSelectLevelFromSingle(void)
|
void StartSelectLevelFromSingle(void)
|
||||||
{
|
{
|
||||||
|
CLevelsMenu &gmCurrent = _pGUIM->gmLevelsMenu;
|
||||||
|
|
||||||
FilterLevels(GetSpawnFlagsForGameType(-1));
|
FilterLevels(GetSpawnFlagsForGameType(-1));
|
||||||
_pAfterLevelChosen = StartSinglePlayerNewMenuCustom;
|
_pAfterLevelChosen = StartSinglePlayerNewMenuCustom;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmSinglePlayerMenu;
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmSinglePlayerMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectLevelFromSplit(void)
|
void StartSelectLevelFromSplit(void)
|
||||||
{
|
{
|
||||||
|
CLevelsMenu &gmCurrent = _pGUIM->gmLevelsMenu;
|
||||||
|
|
||||||
FilterLevels(GetSpawnFlagsForGameType(_pGUIM->gmSplitStartMenu.gm_mgGameType.mg_iSelected));
|
FilterLevels(GetSpawnFlagsForGameType(_pGUIM->gmSplitStartMenu.gm_mgGameType.mg_iSelected));
|
||||||
void StartSplitStartMenu(void);
|
void StartSplitStartMenu(void);
|
||||||
_pAfterLevelChosen = StartSplitStartMenu;
|
_pAfterLevelChosen = StartSplitStartMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmSplitStartMenu;
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmSplitStartMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectLevelFromNetwork(void)
|
void StartSelectLevelFromNetwork(void)
|
||||||
{
|
{
|
||||||
|
CLevelsMenu &gmCurrent = _pGUIM->gmLevelsMenu;
|
||||||
|
|
||||||
FilterLevels(GetSpawnFlagsForGameType(_pGUIM->gmNetworkStartMenu.gm_mgGameType.mg_iSelected));
|
FilterLevels(GetSpawnFlagsForGameType(_pGUIM->gmNetworkStartMenu.gm_mgGameType.mg_iSelected));
|
||||||
void StartNetworkStartMenu(void);
|
void StartNetworkStartMenu(void);
|
||||||
_pAfterLevelChosen = StartNetworkStartMenu;
|
_pAfterLevelChosen = StartNetworkStartMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmNetworkStartMenu;
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmNetworkStartMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CMENU
|
|
||||||
|
|
||||||
// -------- Players Selection Menu Functions
|
// -------- Players Selection Menu Functions
|
||||||
#define CMENU _pGUIM->gmSelectPlayersMenu
|
|
||||||
|
|
||||||
void StartSelectPlayersMenuFromSplit(void)
|
void StartSelectPlayersMenuFromSplit(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_bAllowDedicated = FALSE;
|
CSelectPlayersMenu &gmCurrent = _pGUIM->gmSelectPlayersMenu;
|
||||||
CMENU.gm_bAllowObserving = FALSE;
|
|
||||||
CMENU.gm_mgStart.mg_pActivatedFunction = &StartSplitScreenGame;
|
gmCurrent.gm_bAllowDedicated = FALSE;
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmSplitStartMenu;
|
gmCurrent.gm_bAllowObserving = FALSE;
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_mgStart.mg_pActivatedFunction = &StartSplitScreenGame;
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmSplitStartMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectPlayersMenuFromNetwork(void)
|
void StartSelectPlayersMenuFromNetwork(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_bAllowDedicated = TRUE;
|
CSelectPlayersMenu &gmCurrent = _pGUIM->gmSelectPlayersMenu;
|
||||||
CMENU.gm_bAllowObserving = TRUE;
|
|
||||||
CMENU.gm_mgStart.mg_pActivatedFunction = &StartNetworkGame;
|
gmCurrent.gm_bAllowDedicated = TRUE;
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmNetworkStartMenu;
|
gmCurrent.gm_bAllowObserving = TRUE;
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_mgStart.mg_pActivatedFunction = &StartNetworkGame;
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmNetworkStartMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectPlayersMenuFromNetworkLoad(void)
|
void StartSelectPlayersMenuFromNetworkLoad(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_bAllowDedicated = FALSE;
|
CSelectPlayersMenu &gmCurrent = _pGUIM->gmSelectPlayersMenu;
|
||||||
CMENU.gm_bAllowObserving = TRUE;
|
|
||||||
CMENU.gm_mgStart.mg_pActivatedFunction = &StartNetworkLoadGame;
|
gmCurrent.gm_bAllowDedicated = FALSE;
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmLoadSaveMenu;
|
gmCurrent.gm_bAllowObserving = TRUE;
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_mgStart.mg_pActivatedFunction = &StartNetworkLoadGame;
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmLoadSaveMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectPlayersMenuFromSplitScreenLoad(void)
|
void StartSelectPlayersMenuFromSplitScreenLoad(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_bAllowDedicated = FALSE;
|
CSelectPlayersMenu &gmCurrent = _pGUIM->gmSelectPlayersMenu;
|
||||||
CMENU.gm_bAllowObserving = FALSE;
|
|
||||||
CMENU.gm_mgStart.mg_pActivatedFunction = &StartSplitScreenGameLoad;
|
gmCurrent.gm_bAllowDedicated = FALSE;
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmLoadSaveMenu;
|
gmCurrent.gm_bAllowObserving = FALSE;
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_mgStart.mg_pActivatedFunction = &StartSplitScreenGameLoad;
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmLoadSaveMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectPlayersMenuFromOpen(void)
|
void StartSelectPlayersMenuFromOpen(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_bAllowDedicated = FALSE;
|
CSelectPlayersMenu &gmCurrent = _pGUIM->gmSelectPlayersMenu;
|
||||||
CMENU.gm_bAllowObserving = TRUE;
|
|
||||||
CMENU.gm_mgStart.mg_pActivatedFunction = &JoinNetworkGame;
|
gmCurrent.gm_bAllowDedicated = FALSE;
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmNetworkOpenMenu;
|
gmCurrent.gm_bAllowObserving = TRUE;
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_mgStart.mg_pActivatedFunction = &JoinNetworkGame;
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmNetworkOpenMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
|
|
||||||
/*if (sam_strNetworkSettings=="")*/ {
|
/*if (sam_strNetworkSettings=="")*/ {
|
||||||
void StartNetworkSettingsMenu(void);
|
void StartNetworkSettingsMenu(void);
|
||||||
StartNetworkSettingsMenu();
|
StartNetworkSettingsMenu();
|
||||||
_pGUIM->gmLoadSaveMenu.gm_bNoEscape = TRUE;
|
_pGUIM->gmLoadSaveMenu.gm_bNoEscape = TRUE;
|
||||||
_pGUIM->gmLoadSaveMenu.gm_pgmParentMenu = &_pGUIM->gmNetworkOpenMenu;
|
_pGUIM->gmLoadSaveMenu.gm_pgmParentMenu = &_pGUIM->gmNetworkOpenMenu;
|
||||||
_pGUIM->gmLoadSaveMenu.gm_pgmNextMenu = &CMENU;
|
_pGUIM->gmLoadSaveMenu.gm_pgmNextMenu = &gmCurrent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSelectPlayersMenuFromServers(void)
|
void StartSelectPlayersMenuFromServers(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_bAllowDedicated = FALSE;
|
CSelectPlayersMenu &gmCurrent = _pGUIM->gmSelectPlayersMenu;
|
||||||
CMENU.gm_bAllowObserving = TRUE;
|
|
||||||
CMENU.gm_mgStart.mg_pActivatedFunction = &JoinNetworkGame;
|
gmCurrent.gm_bAllowDedicated = FALSE;
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmServersMenu;
|
gmCurrent.gm_bAllowObserving = TRUE;
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_mgStart.mg_pActivatedFunction = &JoinNetworkGame;
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmServersMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
|
|
||||||
/*if (sam_strNetworkSettings=="")*/ {
|
/*if (sam_strNetworkSettings=="")*/ {
|
||||||
void StartNetworkSettingsMenu(void);
|
void StartNetworkSettingsMenu(void);
|
||||||
StartNetworkSettingsMenu();
|
StartNetworkSettingsMenu();
|
||||||
_pGUIM->gmLoadSaveMenu.gm_bNoEscape = TRUE;
|
_pGUIM->gmLoadSaveMenu.gm_bNoEscape = TRUE;
|
||||||
_pGUIM->gmLoadSaveMenu.gm_pgmParentMenu = &_pGUIM->gmServersMenu;
|
_pGUIM->gmLoadSaveMenu.gm_pgmParentMenu = &_pGUIM->gmServersMenu;
|
||||||
_pGUIM->gmLoadSaveMenu.gm_pgmNextMenu = &CMENU;
|
_pGUIM->gmLoadSaveMenu.gm_pgmNextMenu = &gmCurrent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CMENU
|
|
||||||
|
|
||||||
// -------- Save/Load Menu Calling Functions
|
// -------- Save/Load Menu Calling Functions
|
||||||
#define CMENU _pGUIM->gmLoadSaveMenu
|
|
||||||
|
|
||||||
void StartPlayerModelLoadMenu(void)
|
void StartPlayerModelLoadMenu(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("CHOOSE MODEL");
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_FILEUP;
|
|
||||||
CMENU.gm_bSave = FALSE;
|
|
||||||
CMENU.gm_bManage = FALSE;
|
|
||||||
CMENU.gm_fnmDirectory = CTString("Models\\Player\\");
|
|
||||||
CMENU.gm_fnmSelected = _strLastPlayerAppearance;
|
|
||||||
CMENU.gm_fnmExt = CTString(".amc");
|
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadPlayerModel;
|
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmPlayerProfile;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("CHOOSE MODEL");
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
|
gmCurrent.gm_iSortType = LSSORT_FILEUP;
|
||||||
|
gmCurrent.gm_bSave = FALSE;
|
||||||
|
gmCurrent.gm_bManage = FALSE;
|
||||||
|
gmCurrent.gm_fnmDirectory = CTString("Models\\Player\\");
|
||||||
|
gmCurrent.gm_fnmSelected = _strLastPlayerAppearance;
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".amc");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSLoadPlayerModel;
|
||||||
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmPlayerProfile;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartControlsLoadMenu(void)
|
void StartControlsLoadMenu(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("LOAD CONTROLS");
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
CMENU.gm_bAllowThumbnails = FALSE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_FILEUP;
|
|
||||||
CMENU.gm_bSave = FALSE;
|
|
||||||
CMENU.gm_bManage = FALSE;
|
|
||||||
CMENU.gm_fnmDirectory = CTString("Controls\\");
|
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
|
||||||
CMENU.gm_fnmExt = CTString(".ctl");
|
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadControls;
|
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmControls;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("LOAD CONTROLS");
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_bAllowThumbnails = FALSE;
|
||||||
|
gmCurrent.gm_iSortType = LSSORT_FILEUP;
|
||||||
|
gmCurrent.gm_bSave = FALSE;
|
||||||
|
gmCurrent.gm_bManage = FALSE;
|
||||||
|
gmCurrent.gm_fnmDirectory = CTString("Controls\\");
|
||||||
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".ctl");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSLoadControls;
|
||||||
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmControls;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartCustomLoadMenu(void)
|
void StartCustomLoadMenu(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("ADVANCED OPTIONS");
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
CMENU.gm_bAllowThumbnails = FALSE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_NAMEUP;
|
|
||||||
CMENU.gm_bSave = FALSE;
|
|
||||||
CMENU.gm_bManage = FALSE;
|
|
||||||
CMENU.gm_fnmDirectory = CTString("Scripts\\CustomOptions\\");
|
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
|
||||||
CMENU.gm_fnmExt = CTString(".cfg");
|
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadCustom;
|
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmOptionsMenu;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("ADVANCED OPTIONS");
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_bAllowThumbnails = FALSE;
|
||||||
|
gmCurrent.gm_iSortType = LSSORT_NAMEUP;
|
||||||
|
gmCurrent.gm_bSave = FALSE;
|
||||||
|
gmCurrent.gm_bManage = FALSE;
|
||||||
|
gmCurrent.gm_fnmDirectory = CTString("Scripts\\CustomOptions\\");
|
||||||
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".cfg");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSLoadCustom;
|
||||||
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmOptionsMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartAddonsLoadMenu(void)
|
void StartAddonsLoadMenu(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("EXECUTE ADDON");
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
CMENU.gm_bAllowThumbnails = FALSE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_NAMEUP;
|
|
||||||
CMENU.gm_bSave = FALSE;
|
|
||||||
CMENU.gm_bManage = FALSE;
|
|
||||||
CMENU.gm_fnmDirectory = CTString("Scripts\\Addons\\");
|
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
|
||||||
CMENU.gm_fnmExt = CTString(".ini");
|
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadAddon;
|
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmOptionsMenu;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("EXECUTE ADDON");
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_bAllowThumbnails = FALSE;
|
||||||
|
gmCurrent.gm_iSortType = LSSORT_NAMEUP;
|
||||||
|
gmCurrent.gm_bSave = FALSE;
|
||||||
|
gmCurrent.gm_bManage = FALSE;
|
||||||
|
gmCurrent.gm_fnmDirectory = CTString("Scripts\\Addons\\");
|
||||||
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".ini");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSLoadAddon;
|
||||||
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmOptionsMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartModsLoadMenu(void)
|
void StartModsLoadMenu(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("CHOOSE MOD");
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_NAMEUP;
|
|
||||||
CMENU.gm_bSave = FALSE;
|
|
||||||
CMENU.gm_bManage = FALSE;
|
|
||||||
CMENU.gm_fnmDirectory = CTString("Mods\\");
|
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
|
||||||
CMENU.gm_fnmExt = CTString(".des");
|
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadMod;
|
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmMainMenu;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("CHOOSE MOD");
|
||||||
ChangeToMenu(&CMENU);
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
|
gmCurrent.gm_iSortType = LSSORT_NAMEUP;
|
||||||
|
gmCurrent.gm_bSave = FALSE;
|
||||||
|
gmCurrent.gm_bManage = FALSE;
|
||||||
|
gmCurrent.gm_fnmDirectory = CTString("Mods\\");
|
||||||
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".des");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSLoadMod;
|
||||||
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmMainMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartNetworkSettingsMenu(void)
|
void StartNetworkSettingsMenu(void)
|
||||||
{
|
{
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("CONNECTION SETTINGS");
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
CMENU.gm_bAllowThumbnails = FALSE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_FILEUP;
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("CONNECTION SETTINGS");
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bAllowThumbnails = FALSE;
|
||||||
CMENU.gm_bManage = FALSE;
|
gmCurrent.gm_iSortType = LSSORT_FILEUP;
|
||||||
CMENU.gm_fnmDirectory = CTString("Scripts\\NetSettings\\");
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_fnmSelected = sam_strNetworkSettings;
|
gmCurrent.gm_bManage = FALSE;
|
||||||
CMENU.gm_fnmExt = CTString(".ini");
|
gmCurrent.gm_fnmDirectory = CTString("Scripts\\NetSettings\\");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadNetSettings;
|
gmCurrent.gm_fnmSelected = sam_strNetworkSettings;
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".ini");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSLoadNetSettings;
|
||||||
|
|
||||||
if (sam_strNetworkSettings == "") {
|
if (sam_strNetworkSettings == "") {
|
||||||
CMENU.gm_mgNotes.mg_strText = TRANS(
|
gmCurrent.gm_mgNotes.mg_strText = TRANS(
|
||||||
"Before joining a network game,\n"
|
"Before joining a network game,\n"
|
||||||
"you have to adjust your connection parameters.\n"
|
"you have to adjust your connection parameters.\n"
|
||||||
"Choose one option from the list.\n"
|
"Choose one option from the list.\n"
|
||||||
|
@ -556,246 +589,271 @@ void StartNetworkSettingsMenu(void)
|
||||||
"these parameters again from the Options menu.\n"
|
"these parameters again from the Options menu.\n"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = &_pGUIM->gmOptionsMenu;
|
gmCurrent.gm_pgmParentMenu = &_pGUIM->gmOptionsMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void StartSinglePlayerQuickLoadMenu(void)
|
void StartSinglePlayerQuickLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_SINGLE_PLAYER;
|
_gmMenuGameMode = GM_SINGLE_PLAYER;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("QUICK LOAD");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("QUICK LOAD");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory.PrintF("SaveGame\\Player%d\\Quick\\", _pGame->gm_iSinglePlayer);
|
gmCurrent.gm_fnmDirectory.PrintF("SaveGame\\Player%d\\Quick\\", _pGame->gm_iSinglePlayer);
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadSinglePlayer;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadSinglePlayer;
|
||||||
SetQuickLoadNotes();
|
SetQuickLoadNotes();
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSinglePlayerLoadMenu(void)
|
void StartSinglePlayerLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_SINGLE_PLAYER;
|
_gmMenuGameMode = GM_SINGLE_PLAYER;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("LOAD");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("LOAD");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory.PrintF("SaveGame\\Player%d\\", _pGame->gm_iSinglePlayer);
|
gmCurrent.gm_fnmDirectory.PrintF("SaveGame\\Player%d\\", _pGame->gm_iSinglePlayer);
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadSinglePlayer;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadSinglePlayer;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSinglePlayerSaveMenu(void)
|
void StartSinglePlayerSaveMenu(void)
|
||||||
{
|
{
|
||||||
if (_gmRunningGameMode != GM_SINGLE_PLAYER) return;
|
if (_gmRunningGameMode != GM_SINGLE_PLAYER) return;
|
||||||
|
|
||||||
// if no live players
|
// if no live players
|
||||||
if (_pGame->GetPlayersCount()>0 && _pGame->GetLivePlayersCount() <= 0) {
|
if (_pGame->GetPlayersCount()>0 && _pGame->GetLivePlayersCount() <= 0) {
|
||||||
// do nothing
|
// do nothing
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_gmMenuGameMode = GM_SINGLE_PLAYER;
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("SAVE");
|
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
|
||||||
CMENU.gm_bSave = TRUE;
|
|
||||||
CMENU.gm_bManage = TRUE;
|
|
||||||
CMENU.gm_fnmDirectory.PrintF("SaveGame\\Player%d\\", _pGame->gm_iSinglePlayer);
|
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
|
||||||
CMENU.gm_fnmBaseName = CTString("SaveGame");
|
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
|
||||||
CMENU.gm_pAfterFileChosen = &LSSaveAnyGame;
|
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
|
||||||
CMENU.gm_strSaveDes = _pGame->GetDefaultGameDescription(TRUE);
|
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
ChangeToMenu(&CMENU);
|
|
||||||
|
_gmMenuGameMode = GM_SINGLE_PLAYER;
|
||||||
|
|
||||||
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("SAVE");
|
||||||
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
|
gmCurrent.gm_bSave = TRUE;
|
||||||
|
gmCurrent.gm_bManage = TRUE;
|
||||||
|
gmCurrent.gm_fnmDirectory.PrintF("SaveGame\\Player%d\\", _pGame->gm_iSinglePlayer);
|
||||||
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
|
gmCurrent.gm_fnmBaseName = CTString("SaveGame");
|
||||||
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
|
gmCurrent.gm_pAfterFileChosen = &LSSaveAnyGame;
|
||||||
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
gmCurrent.gm_strSaveDes = _pGame->GetDefaultGameDescription(TRUE);
|
||||||
|
|
||||||
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartDemoLoadMenu(void)
|
void StartDemoLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_DEMO;
|
_gmMenuGameMode = GM_DEMO;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("PLAY DEMO");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("PLAY DEMO");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("Demos\\");
|
gmCurrent.gm_fnmDirectory = CTString("Demos\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".dem");
|
gmCurrent.gm_fnmExt = CTString(".dem");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadDemo;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadDemo;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartDemoSaveMenu(void)
|
void StartDemoSaveMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
if (_gmRunningGameMode == GM_NONE) return;
|
if (_gmRunningGameMode == GM_NONE) return;
|
||||||
_gmMenuGameMode = GM_DEMO;
|
_gmMenuGameMode = GM_DEMO;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("RECORD DEMO");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("RECORD DEMO");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEUP;
|
gmCurrent.gm_iSortType = LSSORT_FILEUP;
|
||||||
CMENU.gm_bSave = TRUE;
|
gmCurrent.gm_bSave = TRUE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("Demos\\");
|
gmCurrent.gm_fnmDirectory = CTString("Demos\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmBaseName = CTString("Demo");
|
gmCurrent.gm_fnmBaseName = CTString("Demo");
|
||||||
CMENU.gm_fnmExt = CTString(".dem");
|
gmCurrent.gm_fnmExt = CTString(".dem");
|
||||||
CMENU.gm_pAfterFileChosen = &LSSaveDemo;
|
gmCurrent.gm_pAfterFileChosen = &LSSaveDemo;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
CMENU.gm_strSaveDes = _pGame->GetDefaultGameDescription(FALSE);
|
gmCurrent.gm_strSaveDes = _pGame->GetDefaultGameDescription(FALSE);
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartNetworkQuickLoadMenu(void)
|
void StartNetworkQuickLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_NETWORK;
|
_gmMenuGameMode = GM_NETWORK;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("QUICK LOAD");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("QUICK LOAD");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("SaveGame\\Network\\Quick\\");
|
gmCurrent.gm_fnmDirectory = CTString("SaveGame\\Network\\Quick\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadNetwork;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadNetwork;
|
||||||
SetQuickLoadNotes();
|
SetQuickLoadNotes();
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartNetworkLoadMenu(void)
|
void StartNetworkLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_NETWORK;
|
_gmMenuGameMode = GM_NETWORK;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("LOAD");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("LOAD");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("SaveGame\\Network\\");
|
gmCurrent.gm_fnmDirectory = CTString("SaveGame\\Network\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadNetwork;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadNetwork;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartNetworkSaveMenu(void)
|
void StartNetworkSaveMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
if (_gmRunningGameMode != GM_NETWORK) return;
|
if (_gmRunningGameMode != GM_NETWORK) return;
|
||||||
_gmMenuGameMode = GM_NETWORK;
|
_gmMenuGameMode = GM_NETWORK;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("SAVE");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("SAVE");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = TRUE;
|
gmCurrent.gm_bSave = TRUE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("SaveGame\\Network\\");
|
gmCurrent.gm_fnmDirectory = CTString("SaveGame\\Network\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmBaseName = CTString("SaveGame");
|
gmCurrent.gm_fnmBaseName = CTString("SaveGame");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSSaveAnyGame;
|
gmCurrent.gm_pAfterFileChosen = &LSSaveAnyGame;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
CMENU.gm_strSaveDes = _pGame->GetDefaultGameDescription(TRUE);
|
gmCurrent.gm_strSaveDes = _pGame->GetDefaultGameDescription(TRUE);
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSplitScreenQuickLoadMenu(void)
|
void StartSplitScreenQuickLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_SPLIT_SCREEN;
|
_gmMenuGameMode = GM_SPLIT_SCREEN;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("QUICK LOAD");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("QUICK LOAD");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("SaveGame\\SplitScreen\\Quick\\");
|
gmCurrent.gm_fnmDirectory = CTString("SaveGame\\SplitScreen\\Quick\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadSplitScreen;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadSplitScreen;
|
||||||
SetQuickLoadNotes();
|
SetQuickLoadNotes();
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSplitScreenLoadMenu(void)
|
void StartSplitScreenLoadMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
_gmMenuGameMode = GM_SPLIT_SCREEN;
|
_gmMenuGameMode = GM_SPLIT_SCREEN;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("LOAD");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("LOAD");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = FALSE;
|
gmCurrent.gm_bSave = FALSE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("SaveGame\\SplitScreen\\");
|
gmCurrent.gm_fnmDirectory = CTString("SaveGame\\SplitScreen\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSLoadSplitScreen;
|
gmCurrent.gm_pAfterFileChosen = &LSLoadSplitScreen;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartSplitScreenSaveMenu(void)
|
void StartSplitScreenSaveMenu(void)
|
||||||
{
|
{
|
||||||
|
CLoadSaveMenu &gmCurrent = _pGUIM->gmLoadSaveMenu;
|
||||||
|
|
||||||
if (_gmRunningGameMode != GM_SPLIT_SCREEN) return;
|
if (_gmRunningGameMode != GM_SPLIT_SCREEN) return;
|
||||||
_gmMenuGameMode = GM_SPLIT_SCREEN;
|
_gmMenuGameMode = GM_SPLIT_SCREEN;
|
||||||
|
|
||||||
CMENU.gm_mgTitle.mg_strText = TRANS("SAVE");
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("SAVE");
|
||||||
CMENU.gm_bAllowThumbnails = TRUE;
|
gmCurrent.gm_bAllowThumbnails = TRUE;
|
||||||
CMENU.gm_iSortType = LSSORT_FILEDN;
|
gmCurrent.gm_iSortType = LSSORT_FILEDN;
|
||||||
CMENU.gm_bSave = TRUE;
|
gmCurrent.gm_bSave = TRUE;
|
||||||
CMENU.gm_bManage = TRUE;
|
gmCurrent.gm_bManage = TRUE;
|
||||||
CMENU.gm_fnmDirectory = CTString("SaveGame\\SplitScreen\\");
|
gmCurrent.gm_fnmDirectory = CTString("SaveGame\\SplitScreen\\");
|
||||||
CMENU.gm_fnmSelected = CTString("");
|
gmCurrent.gm_fnmSelected = CTString("");
|
||||||
CMENU.gm_fnmBaseName = CTString("SaveGame");
|
gmCurrent.gm_fnmBaseName = CTString("SaveGame");
|
||||||
CMENU.gm_fnmExt = CTString(".sav");
|
gmCurrent.gm_fnmExt = CTString(".sav");
|
||||||
CMENU.gm_pAfterFileChosen = &LSSaveAnyGame;
|
gmCurrent.gm_pAfterFileChosen = &LSSaveAnyGame;
|
||||||
CMENU.gm_mgNotes.mg_strText = "";
|
gmCurrent.gm_mgNotes.mg_strText = "";
|
||||||
CMENU.gm_strSaveDes = _pGame->GetDefaultGameDescription(TRUE);
|
gmCurrent.gm_strSaveDes = _pGame->GetDefaultGameDescription(TRUE);
|
||||||
|
|
||||||
CMENU.gm_pgmParentMenu = pgmCurrentMenu;
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&CMENU);
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CMENU
|
|
||||||
|
|
||||||
// -------- Disabled Menu Calling Function
|
// -------- Disabled Menu Calling Function
|
||||||
void DisabledFunction(void)
|
void DisabledFunction(void)
|
||||||
{
|
{
|
||||||
_pGUIM->gmDisabledFunction.gm_pgmParentMenu = pgmCurrentMenu;
|
CDisabledMenu &gmCurrent = _pGUIM->gmDisabledFunction;
|
||||||
_pGUIM->gmDisabledFunction.gm_mgButton.mg_strText = TRANS("The feature is not available in this version!");
|
|
||||||
_pGUIM->gmDisabledFunction.gm_mgTitle.mg_strText = TRANS("DISABLED");
|
gmCurrent.gm_pgmParentMenu = pgmCurrentMenu;
|
||||||
ChangeToMenu(&_pGUIM->gmDisabledFunction);
|
gmCurrent.gm_mgButton.mg_strText = TRANS("The feature is not available in this version!");
|
||||||
|
gmCurrent.gm_mgTitle.mg_strText = TRANS("DISABLED");
|
||||||
|
ChangeToMenu(&gmCurrent);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user