51 cmd_force_dlg(0), cmd_missions_dlg(0), cmd_orders_dlg(0),
52 cmd_intel_dlg(0), cmd_theater_dlg(0), cmd_msg_dlg(0), cmp_file_dlg(0),
53 cmp_end_dlg(0), cmp_scene_dlg(0),
54 isShown(false), campaign(0), stars(0), completion_stage(0)
77 FormDef cmd_orders_def(
"CmdOrdersDlg", 0);
78 cmd_orders_def.
Load(
"CmdOrdersDlg");
79 cmd_orders_dlg =
new(__FILE__,__LINE__)
CmdOrdersDlg(screen, cmd_orders_def,
this);
81 FormDef cmd_force_def(
"CmdForceDlg", 0);
82 cmd_force_def.
Load(
"CmdForceDlg");
83 cmd_force_dlg =
new(__FILE__,__LINE__)
CmdForceDlg(screen, cmd_force_def,
this);
85 FormDef cmd_theater_def(
"CmdTheaterDlg", 0);
86 cmd_theater_def.
Load(
"CmdTheaterDlg");
87 cmd_theater_dlg =
new(__FILE__,__LINE__)
CmdTheaterDlg(screen, cmd_theater_def,
this);
89 FormDef cmd_intel_def(
"CmdIntelDlg", 0);
90 cmd_intel_def.
Load(
"CmdIntelDlg");
91 cmd_intel_dlg =
new(__FILE__,__LINE__)
CmdIntelDlg(screen, cmd_intel_def,
this);
93 FormDef cmd_missions_def(
"CmdMissionsDlg", 0);
94 cmd_missions_def.
Load(
"CmdMissionsDlg");
95 cmd_missions_dlg =
new(__FILE__,__LINE__)
CmdMissionsDlg(screen, cmd_missions_def,
this);
98 file_def.
Load(
"FileDlg");
99 cmp_file_dlg =
new(__FILE__,__LINE__)
CmpFileDlg(screen, file_def,
this);
101 FormDef msg_def(
"CmdMsgDlg", 0);
102 msg_def.
Load(
"CmdMsgDlg");
103 cmd_msg_dlg =
new(__FILE__,__LINE__)
CmdMsgDlg(screen, msg_def,
this);
105 FormDef end_def(
"CmpCompleteDlg", 0);
106 end_def.
Load(
"CmpCompleteDlg");
107 cmp_end_dlg =
new(__FILE__,__LINE__)
CmpCompleteDlg(screen, end_def,
this);
109 FormDef scene_def(
"CmpSceneDlg", 0);
110 scene_def.
Load(
"CmpSceneDlg");
111 cmp_scene_dlg =
new(__FILE__,__LINE__)
CmpSceneDlg(screen, scene_def,
this);
135 delete cmd_force_dlg;
136 delete cmd_missions_dlg;
137 delete cmd_orders_dlg;
138 delete cmd_intel_dlg;
139 delete cmd_theater_dlg;
143 delete cmp_scene_dlg;
146 cmd_missions_dlg = 0;
184 if (cmd_orders_dlg && cmd_orders_dlg->
IsShown()) {
188 else if (cmd_force_dlg && cmd_force_dlg->
IsShown()) {
192 else if (cmd_theater_dlg && cmd_theater_dlg->
IsShown()) {
196 else if (cmd_missions_dlg && cmd_missions_dlg->
IsShown()) {
200 else if (cmd_intel_dlg && cmd_intel_dlg->
IsShown()) {
204 if (cmp_file_dlg && cmp_file_dlg->
IsShown()) {
208 if (cmd_msg_dlg && cmd_msg_dlg->
IsShown()) {
212 else if (cmp_end_dlg && cmp_end_dlg->
IsShown()) {
214 completion_stage = 2;
217 else if (cmp_scene_dlg && cmp_scene_dlg->
IsShown()) {
220 if (completion_stage > 0)
221 completion_stage = 2;
226 if (completion_stage == 0) {
236 if (player->
Trained() >= all_missions && player->
Trained() < 255) {
247 completion_stage = 1;
252 bool cutscene =
false;
255 if (event && !event->Visited() &&
event->SceneFile() && *
event->SceneFile()) {
273 completion_stage = 1;
278 else if (completion_stage > 1) {
279 completion_stage = 0;
308 if (completion_stage < 1) {
319 bool processed =
false;
341 completion_stage = 0;
343 bool cutscene =
false;
349 event = iter.
value();
351 if (event && !event->Visited() &&
event->SceneFile() && *
event->SceneFile()) {
359 event->SetVisited(
true);
382 if (cmd_force_dlg) cmd_force_dlg->
Hide();
383 if (cmd_missions_dlg) cmd_missions_dlg->
Hide();
384 if (cmd_orders_dlg) cmd_orders_dlg->
Hide();
385 if (cmd_intel_dlg) cmd_intel_dlg->
Hide();
386 if (cmd_theater_dlg) cmd_theater_dlg->
Hide();
387 if (cmd_msg_dlg) cmd_msg_dlg->
Hide();
388 if (cmp_file_dlg) cmp_file_dlg->
Hide();
389 if (cmp_end_dlg) cmp_end_dlg->
Hide();
390 if (cmp_scene_dlg) cmp_scene_dlg->
Hide();
407 cmd_force_dlg->
Show();
417 cmd_force_dlg->
Hide();
425 return cmd_force_dlg && cmd_force_dlg->
IsShown();
434 cmd_orders_dlg->
Show();
444 cmd_orders_dlg->
Hide();
452 return cmd_orders_dlg && cmd_orders_dlg->
IsShown();
461 cmd_missions_dlg->
Show();
471 cmd_missions_dlg->
Hide();
479 return cmd_missions_dlg && cmd_missions_dlg->
IsShown();
488 cmd_intel_dlg->
Show();
498 cmd_intel_dlg->
Hide();
506 return cmd_intel_dlg && cmd_intel_dlg->
IsShown();
515 cmd_theater_dlg->
Show();
525 cmd_theater_dlg->
Hide();
533 return cmd_theater_dlg && cmd_theater_dlg->
IsShown();
541 cmp_file_dlg->
Show();
551 cmp_file_dlg->
Hide();
559 return cmp_file_dlg && cmp_file_dlg->
IsShown();
585 return cmd_msg_dlg && cmd_msg_dlg->
IsShown();
611 return cmp_end_dlg && cmp_end_dlg->
IsShown();
619 cmp_scene_dlg->
Show();
629 cmp_scene_dlg->
Hide();
637 return cmp_scene_dlg && cmp_scene_dlg->
IsShown();