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;
293 #ifdef STARSHATTER_DEMO_RELEASE
317 if (completion_stage < 1) {
328 bool processed =
false;
350 completion_stage = 0;
352 bool cutscene =
false;
358 event = iter.
value();
360 if (event && !event->Visited() &&
event->SceneFile() && *
event->SceneFile()) {
368 event->SetVisited(
true);
391 if (cmd_force_dlg) cmd_force_dlg->
Hide();
392 if (cmd_missions_dlg) cmd_missions_dlg->
Hide();
393 if (cmd_orders_dlg) cmd_orders_dlg->
Hide();
394 if (cmd_intel_dlg) cmd_intel_dlg->
Hide();
395 if (cmd_theater_dlg) cmd_theater_dlg->
Hide();
396 if (cmd_msg_dlg) cmd_msg_dlg->
Hide();
397 if (cmp_file_dlg) cmp_file_dlg->
Hide();
398 if (cmp_end_dlg) cmp_end_dlg->
Hide();
399 if (cmp_scene_dlg) cmp_scene_dlg->
Hide();
416 cmd_force_dlg->
Show();
426 cmd_force_dlg->
Hide();
434 return cmd_force_dlg && cmd_force_dlg->
IsShown();
443 cmd_orders_dlg->
Show();
453 cmd_orders_dlg->
Hide();
461 return cmd_orders_dlg && cmd_orders_dlg->
IsShown();
470 cmd_missions_dlg->
Show();
480 cmd_missions_dlg->
Hide();
488 return cmd_missions_dlg && cmd_missions_dlg->
IsShown();
497 cmd_intel_dlg->
Show();
507 cmd_intel_dlg->
Hide();
515 return cmd_intel_dlg && cmd_intel_dlg->
IsShown();
524 cmd_theater_dlg->
Show();
534 cmd_theater_dlg->
Hide();
542 return cmd_theater_dlg && cmd_theater_dlg->
IsShown();
550 cmp_file_dlg->
Show();
560 cmp_file_dlg->
Hide();
568 return cmp_file_dlg && cmp_file_dlg->
IsShown();
594 return cmd_msg_dlg && cmd_msg_dlg->
IsShown();
620 return cmp_end_dlg && cmp_end_dlg->
IsShown();
628 cmp_scene_dlg->
Show();
638 cmp_scene_dlg->
Hide();
646 return cmp_scene_dlg && cmp_scene_dlg->
IsShown();