mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 15:14:51 +01:00
Continue splitting Menu.cpp into multiple files.
This commit is contained in:
parent
31d597856d
commit
36c6eb19c0
File diff suppressed because it is too large
Load Diff
|
@ -24,6 +24,29 @@ extern CTString astrWeapon[] = {
|
|||
RADIOTRANS("Only if stronger"),
|
||||
};
|
||||
|
||||
extern PIX apixWidths[][2] = {
|
||||
320, 240,
|
||||
400, 300,
|
||||
512, 384,
|
||||
640, 240,
|
||||
640, 480,
|
||||
720, 540,
|
||||
800, 300,
|
||||
800, 600,
|
||||
960, 720,
|
||||
1024, 384,
|
||||
1024, 768,
|
||||
1152, 864,
|
||||
1280, 480,
|
||||
1280, 960,
|
||||
1600, 600,
|
||||
1600, 1200,
|
||||
1920, 720,
|
||||
1920, 1440,
|
||||
2048, 786,
|
||||
2048, 1536,
|
||||
};
|
||||
|
||||
extern CTString astrCrosshair[] = {
|
||||
"",
|
||||
"Textures\\Interface\\Crosshairs\\Crosshair1.tex",
|
||||
|
@ -196,4 +219,46 @@ int qsort_CompareFileInfos_FileDn(const void *elem1, const void *elem2)
|
|||
const CFileInfo &fi1 = **(CFileInfo **)elem1;
|
||||
const CFileInfo &fi2 = **(CFileInfo **)elem2;
|
||||
return -strcmp(fi1.fi_fnFile, fi2.fi_fnFile);
|
||||
}
|
||||
|
||||
INDEX APIToSwitch(enum GfxAPIType gat)
|
||||
{
|
||||
switch (gat) {
|
||||
case GAT_OGL: return 0;
|
||||
#ifdef SE1_D3D
|
||||
case GAT_D3D: return 1;
|
||||
#endif // SE1_D3D
|
||||
default: ASSERT(FALSE); return 0;
|
||||
}
|
||||
}
|
||||
|
||||
enum GfxAPIType SwitchToAPI(INDEX i)
|
||||
{
|
||||
switch (i) {
|
||||
case 0: return GAT_OGL;
|
||||
#ifdef SE1_D3D
|
||||
case 1: return GAT_D3D;
|
||||
#endif // SE1_D3D
|
||||
default: ASSERT(FALSE); return GAT_OGL;
|
||||
}
|
||||
}
|
||||
|
||||
INDEX DepthToSwitch(enum DisplayDepth dd)
|
||||
{
|
||||
switch (dd) {
|
||||
case DD_DEFAULT: return 0;
|
||||
case DD_16BIT: return 1;
|
||||
case DD_32BIT: return 2;
|
||||
default: ASSERT(FALSE); return 0;
|
||||
}
|
||||
}
|
||||
|
||||
enum DisplayDepth SwitchToDepth(INDEX i)
|
||||
{
|
||||
switch (i) {
|
||||
case 0: return DD_DEFAULT;
|
||||
case 1: return DD_16BIT;
|
||||
case 2: return DD_32BIT;
|
||||
default: ASSERT(FALSE); return DD_DEFAULT;
|
||||
}
|
||||
}
|
|
@ -36,6 +36,8 @@ extern CTString astrBitsPerPixelRadioTexts[3];
|
|||
extern CTString astrFrequencyRadioTexts[4];
|
||||
extern CTString astrSoundAPIRadioTexts[3];
|
||||
|
||||
extern PIX apixWidths[20][2];
|
||||
|
||||
ULONG GetSpawnFlagsForGameType(INDEX iGameType);
|
||||
BOOL IsMenuEnabled(const CTString &strMenuName);
|
||||
void InitGameTypes(void);
|
||||
|
@ -45,4 +47,9 @@ 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);
|
||||
|
||||
INDEX APIToSwitch(enum GfxAPIType gat);
|
||||
enum GfxAPIType SwitchToAPI(INDEX i);
|
||||
INDEX DepthToSwitch(enum DisplayDepth dd);
|
||||
enum DisplayDepth SwitchToDepth(INDEX i);
|
||||
|
||||
#endif /* include-once check. */
|
1354
Sources/SeriousSam/GUI/Menus/Menu_actions.cpp
Normal file
1354
Sources/SeriousSam/GUI/Menus/Menu_actions.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1024
Sources/SeriousSam/GUI/Menus/Menu_starters.cpp
Normal file
1024
Sources/SeriousSam/GUI/Menus/Menu_starters.cpp
Normal file
File diff suppressed because it is too large
Load Diff
67
Sources/SeriousSam/GUI/Menus/Menu_starters.h
Normal file
67
Sources/SeriousSam/GUI/Menus/Menu_starters.h
Normal file
|
@ -0,0 +1,67 @@
|
|||
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
||||
|
||||
#ifndef SE_INCL_MENU_STARTERS_H
|
||||
#define SE_INCL_MENU_STARTERS_H
|
||||
#ifdef PRAGMA_ONCE
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
|
||||
void StartVideoOptionsMenu(void);
|
||||
void StartAudioOptionsMenu(void);
|
||||
void StartNetworkMenu(void);
|
||||
void StartNetworkJoinMenu(void);
|
||||
void StartNetworkStartMenu(void);
|
||||
void StartNetworkOpenMenu(void);
|
||||
void StartSplitScreenMenu(void);
|
||||
void StartSplitStartMenu(void);
|
||||
void StartSinglePlayerNewMenuCustom(void);
|
||||
void StartSinglePlayerNewMenu(void);
|
||||
void StartSinglePlayerQuickLoadMenu(void);
|
||||
void StartSinglePlayerLoadMenu(void);
|
||||
void StartSinglePlayerSaveMenu(void);
|
||||
void StartDemoLoadMenu(void);
|
||||
void StartDemoSaveMenu(void);
|
||||
void StartNetworkQuickLoadMenu(void);
|
||||
void StartNetworkLoadMenu(void);
|
||||
void StartNetworkSaveMenu(void);
|
||||
void StartSplitScreenQuickLoadMenu(void);
|
||||
void StartSplitScreenLoadMenu(void);
|
||||
void StartSplitScreenSaveMenu(void);
|
||||
void StartVarGameOptions(void);
|
||||
void StartSinglePlayerGameOptions(void);
|
||||
void StartGameOptionsFromNetwork(void);
|
||||
void StartGameOptionsFromSplitScreen(void);
|
||||
void StartRenderingOptionsMenu(void);
|
||||
void StartCustomizeKeyboardMenu(void);
|
||||
void StartCustomizeAxisMenu(void);
|
||||
void StartOptionsMenu(void);
|
||||
void StartCurrentLoadMenu();
|
||||
void StartCurrentSaveMenu();
|
||||
void StartCurrentQuickLoadMenu();
|
||||
void StartChangePlayerMenuFromOptions(void);
|
||||
void StartChangePlayerMenuFromSinglePlayer(void);
|
||||
void StartControlsMenuFromPlayer(void);
|
||||
void StartControlsMenuFromOptions(void);
|
||||
void StartSelectLevelFromSingle(void);
|
||||
void StartHighScoreMenu(void);
|
||||
void StartSelectPlayersMenuFromSplit(void);
|
||||
void StartSelectPlayersMenuFromNetwork(void);
|
||||
void StartSelectPlayersMenuFromOpen(void);
|
||||
void StartSelectPlayersMenuFromServers(void);
|
||||
void StartSelectServerLAN(void);
|
||||
void StartSelectServerNET(void);
|
||||
void StartSelectLevelFromSplit(void);
|
||||
void StartSelectLevelFromNetwork(void);
|
||||
void StartSelectPlayersMenuFromSplitScreen(void);
|
||||
void StartSelectPlayersMenuFromNetworkLoad(void);
|
||||
void StartSelectPlayersMenuFromSplitScreenLoad(void);
|
||||
void StartPlayerModelLoadMenu(void);
|
||||
void StartControlsLoadMenu(void);
|
||||
void StartCustomLoadMenu(void);
|
||||
void StartAddonsLoadMenu(void);
|
||||
void StartModsLoadMenu(void);
|
||||
void StartNetworkSettingsMenu(void);
|
||||
void StartSinglePlayerMenu(void);
|
||||
|
||||
#endif /* include-once check. */
|
|
@ -204,6 +204,7 @@ copy Release\$(TargetName).map $(SolutionDir)..\Bin\ >nul </Command>
|
|||
<ClCompile Include="GUI\Menus\Menu.cpp" />
|
||||
<ClCompile Include="GUI\Menus\MenuPrinting.cpp" />
|
||||
<ClCompile Include="GUI\Menus\MenuStuff.cpp" />
|
||||
<ClCompile Include="GUI\Menus\Menu_actions.cpp" />
|
||||
<ClCompile Include="GUI\Menus\MHighScore.cpp" />
|
||||
<ClCompile Include="GUI\Menus\MInGame.cpp" />
|
||||
<ClCompile Include="GUI\Menus\MLevels.cpp" />
|
||||
|
@ -252,6 +253,7 @@ copy Release\$(TargetName).map $(SolutionDir)..\Bin\ >nul </Command>
|
|||
<ClInclude Include="GUI\Menus\Menu.h" />
|
||||
<ClInclude Include="GUI\Menus\MenuPrinting.h" />
|
||||
<ClInclude Include="GUI\Menus\MenuStuff.h" />
|
||||
<ClInclude Include="GUI\Menus\Menu_starters.h" />
|
||||
<ClInclude Include="GUI\Menus\MHighScore.h" />
|
||||
<ClInclude Include="GUI\Menus\MInGame.h" />
|
||||
<ClInclude Include="GUI\Menus\MLevels.h" />
|
||||
|
@ -272,6 +274,7 @@ copy Release\$(TargetName).map $(SolutionDir)..\Bin\ >nul </Command>
|
|||
<ClInclude Include="GUI\Menus\MSplitStart.h" />
|
||||
<ClInclude Include="GUI\Menus\MVar.h" />
|
||||
<ClInclude Include="GUI\Menus\MVideoOptions.h" />
|
||||
<ClCompile Include="GUI\Menus\Menu_starters.cpp" />
|
||||
<ClCompile Include="SeriousSam.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">StdH.h</PrecompiledHeaderFile>
|
||||
|
|
|
@ -201,6 +201,12 @@
|
|||
<ClCompile Include="GUI\Menus\MenuPrinting.cpp">
|
||||
<Filter>Source Files\GUI\Menus</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="GUI\Menus\Menu_starters.cpp">
|
||||
<Filter>Source Files\GUI\Menus</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="GUI\Menus\Menu_actions.cpp">
|
||||
<Filter>Source Files\GUI\Menus</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="CDCheck.h">
|
||||
|
@ -383,6 +389,9 @@
|
|||
<ClInclude Include="GUI\Menus\MenuPrinting.h">
|
||||
<Filter>Header Files\GUI headers\Menus headers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="GUI\Menus\Menu_starters.h">
|
||||
<Filter>Header Files\GUI headers\Menus headers</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="SeriousSam.rc">
|
||||
|
|
Loading…
Reference in New Issue
Block a user