MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / LoadCutsceneBackground

Function LoadCutsceneBackground

Source/interfac.cpp:112–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void LoadCutsceneBackground(interface_mode uMsg)
113{
114 const char *celPath;
115 const char *palPath;
116
117 switch (PickCutscene(uMsg)) {
118 case CutStart:
119 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cutstartw.clx");
120 celPath = "gendata\\cutstart";
121 palPath = "gendata\\cutstart.pal";
122 progress_id = 1;
123 break;
124 case CutTown:
125 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cutttw.clx");
126 celPath = "gendata\\cuttt";
127 palPath = "gendata\\cuttt.pal";
128 progress_id = 1;
129 break;
130 case CutLevel1:
131 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cutl1dw.clx");
132 celPath = "gendata\\cutl1d";
133 palPath = "gendata\\cutl1d.pal";
134 progress_id = 0;
135 break;
136 case CutLevel2:
137 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cut2w.clx");
138 celPath = "gendata\\cut2";
139 palPath = "gendata\\cut2.pal";
140 progress_id = 2;
141 break;
142 case CutLevel3:
143 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cut3w.clx");
144 celPath = "gendata\\cut3";
145 palPath = "gendata\\cut3.pal";
146 progress_id = 1;
147 break;
148 case CutLevel4:
149 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cut4w.clx");
150 celPath = "gendata\\cut4";
151 palPath = "gendata\\cut4.pal";
152 progress_id = 1;
153 break;
154 case CutLevel5:
155 ArtCutsceneWidescreen = LoadOptionalClx("nlevels\\cutl5w.clx");
156 celPath = "nlevels\\cutl5";
157 palPath = "nlevels\\cutl5.pal";
158 progress_id = 1;
159 break;
160 case CutLevel6:
161 ArtCutsceneWidescreen = LoadOptionalClx("nlevels\\cutl6w.clx");
162 celPath = "nlevels\\cutl6";
163 palPath = "nlevels\\cutl6.pal";
164 progress_id = 1;
165 break;
166 case CutPortal:
167 ArtCutsceneWidescreen = LoadOptionalClx("gendata\\cutportlw.clx");
168 celPath = "gendata\\cutportl";
169 palPath = "gendata\\cutportl.pal";

Callers 1

ShowProgressFunction · 0.85

Calls 4

PickCutsceneFunction · 0.85
LoadOptionalClxFunction · 0.85
LoadCelFunction · 0.85
LoadPaletteFunction · 0.85

Tested by

no test coverage detected