forked from yasumitsu/ja2-1.13-source-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Screens.cpp
79 lines (69 loc) · 3.81 KB
/
Screens.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifdef PRECOMPILEDHEADERS
#include "JA2 All.h"
#else
#include "Screens.h"
#endif
int iResolution; // INI file
int iPlayIntro;
int iDisableMouseScrolling;
int iUseWinFonts;
/* WANNE, Sgt.Kolja
* INI file (Windowed or Fullscreen)
* REPLACE all defines WINDOWED_MODE with this variable
* this is the LAST occurence of WINDOWED_MODE !
* If (and only if) optionally set, we got a preset of
* Windowed Screen. But this can be overloaded by INI or CmdLine
*/
#ifdef WINDOWED_MODE
int iScreenMode = 1; /* 1 for Windowed, 0 for Fullscreen */
#else
int iScreenMode = 0; /* 0 for Fullscreen */
#endif
BOOL bScreenModeCmdLine = FALSE;
UINT16 SCREEN_WIDTH;
UINT16 SCREEN_HEIGHT;
INT16 iScreenWidthOffset;
INT16 iScreenHeightOffset;
UINT16 xResSize; // 640 / 800 / 1024
UINT16 yResSize; // 480 / 600 / 768
UINT16 xResOffset; // For ARSP: ((SCREEN_WIDTH - xResSize) / 2)
UINT16 yResOffset; // For ARSP: ((SCREEN_HEIGHT - yResSize) / 2)
BOOLEAN fDisplayOverheadMap;
Screens GameScreens[MAX_SCREENS] =
{
{ EditScreenInit, EditScreenHandle, EditScreenShutdown },
{ SavingScreenInitialize, SavingScreenHandle, SavingScreenShutdown }, // Title Screen
{ LoadingScreenInitialize, LoadingScreenHandle, LoadingScreenShutdown }, // Title Screen
{ ErrorScreenInitialize, ErrorScreenHandle, ErrorScreenShutdown }, // Title Screen
{ InitScreenInitialize, InitScreenHandle, InitScreenShutdown }, // Title Screen
{ MainGameScreenInit, MainGameScreenHandle, MainGameScreenShutdown },
{ AniEditScreenInit, AniEditScreenHandle, AniEditScreenShutdown },
{ PalEditScreenInit, PalEditScreenHandle, PalEditScreenShutdown },
{ DebugScreenInit, DebugScreenHandle, DebugScreenShutdown },
{ MapScreenInit, MapScreenHandle, MapScreenShutdown },
{ LaptopScreenInit, LaptopScreenHandle, LaptopScreenShutdown },
{ LoadSaveScreenInit, LoadSaveScreenHandle, LoadSaveScreenShutdown },
{ MapUtilScreenInit, MapUtilScreenHandle, MapUtilScreenShutdown },
{ FadeScreenInit, FadeScreenHandle, FadeScreenShutdown },
{ MessageBoxScreenInit, MessageBoxScreenHandle, MessageBoxScreenShutdown },
{ MainMenuScreenInit, MainMenuScreenHandle, MainMenuScreenShutdown },
{ AutoResolveScreenInit, AutoResolveScreenHandle, AutoResolveScreenShutdown },
{ SaveLoadScreenInit, SaveLoadScreenHandle, SaveLoadScreenShutdown },
{ OptionsScreenInit, OptionsScreenHandle, OptionsScreenShutdown },
{ ShopKeeperScreenInit, ShopKeeperScreenHandle, ShopKeeperScreenShutdown },
{ SexScreenInit, SexScreenHandle, SexScreenShutdown },
{ GameInitOptionsScreenInit, GameInitOptionsScreenHandle, GameInitOptionsScreenShutdown },
{ DemoExitScreenInit, DemoExitScreenHandle, DemoExitScreenShutdown },
{ IntroScreenInit, IntroScreenHandle, IntroScreenShutdown },
{ CreditScreenInit, CreditScreenHandle, CreditScreenShutdown },
{ MPJoinScreenInit, MPJoinScreenHandle, MPJoinScreenShutdown }, // OJW - 20081129
{ MPHostScreenInit, MPHostScreenHandle, MPHostScreenShutdown },
{ MPScoreScreenInit, MPScoreScreenHandle, MPScoreScreenShutdown }, // OJW - 20081222
{ MPChatScreenInit, MPChatScreenHandle, MPChatScreenShutdown }, // OJW - 20090314
{ MPConnectScreenInit, MPConnectScreenHandle, MPConnectScreenShutdown }, // OJW - 20090422
{ MiniGameScreenInit, MiniGameScreenHandle, MiniGameScreenShutdown }, // added by Flugente
#ifdef JA2BETAVERSION
{ AIViewerScreenInit, AIViewerScreenHandle, AIViewerScreenShutdown },
#endif
{ QuestDebugScreenInit, QuestDebugScreenHandle, QuestDebugScreenShutdown }
};