70 : screen(0), menudlg(0),
71 fadewin(0), fadeview(0), exitdlg(0),
72 auddlg(0), viddlg(0), optdlg(0), ctldlg(0), joydlg(0), keydlg(0),
73 playdlg(0), confirmdlg(0), firstdlg(0), awarddlg(0), cmpSelectDlg(0),
74 msnSelectDlg(0), modDlg(0), modInfoDlg(0),
75 msnEditDlg(0), msnElemDlg(0), msnEventDlg(0), msnEditNavDlg(0),
76 netClientDlg(0), netAddrDlg(0), netPassDlg(0), netLobbyDlg(0), netServerDlg(0),
77 netUnitDlg(0), loadDlg(0), tacRefDlg(0), current_dlg(0), isShown(false)
103 FormDef menu_def(
"MenuDlg", 0);
104 menu_def.
Load(
"MenuDlg");
105 menudlg =
new(__FILE__,__LINE__)
MenuDlg(screen, menu_def,
this);
107 FormDef exit_def(
"ExitDlg", 0);
108 exit_def.
Load(
"ExitDlg");
109 exitdlg =
new(__FILE__,__LINE__)
ExitDlg(screen, exit_def,
this);
112 aud_def.
Load(
"AudDlg");
113 auddlg =
new(__FILE__,__LINE__)
AudDlg(screen, aud_def,
this);
116 ctl_def.
Load(
"CtlDlg");
117 ctldlg =
new(__FILE__,__LINE__)
CtlDlg(screen, ctl_def,
this);
120 opt_def.
Load(
"OptDlg");
121 optdlg =
new(__FILE__,__LINE__)
OptDlg(screen, opt_def,
this);
124 vid_def.
Load(
"VidDlg");
125 viddlg =
new(__FILE__,__LINE__)
VidDlg(screen, vid_def,
this);
128 mod_def.
Load(
"ModDlg");
129 modDlg =
new(__FILE__,__LINE__)
ModDlg(screen, mod_def,
this);
131 FormDef tac_ref_def(
"TacRefDlg", 0);
132 tac_ref_def.
Load(
"TacRefDlg");
133 tacRefDlg =
new(__FILE__,__LINE__)
TacRefDlg(screen, tac_ref_def,
this);
135 FormDef cmp_sel_def(
"CmpSelectDlg", 0);
136 cmp_sel_def.
Load(
"CmpSelectDlg");
137 cmpSelectDlg =
new(__FILE__,__LINE__)
CmpSelectDlg(screen, cmp_sel_def,
this);
139 FormDef net_lobby_def(
"NetLobbyDlg", 0);
140 net_lobby_def.
Load(
"NetLobbyDlg");
141 netLobbyDlg =
new(__FILE__,__LINE__)
NetLobbyDlg(screen, net_lobby_def,
this);
143 FormDef net_client_def(
"NetClientDlg", 0);
144 net_client_def.
Load(
"NetClientDlg");
145 netClientDlg =
new(__FILE__,__LINE__)
NetClientDlg(screen, net_client_def,
this);
147 FormDef net_server_def(
"NetServerDlg", 0);
148 net_server_def.
Load(
"NetServerDlg");
149 netServerDlg =
new(__FILE__,__LINE__)
NetServerDlg(screen, net_server_def,
this);
151 FormDef net_unit_def(
"NetUnitDlg", 0);
152 net_unit_def.
Load(
"NetUnitDlg");
153 netUnitDlg =
new(__FILE__,__LINE__)
NetUnitDlg(screen, net_unit_def,
this);
155 FormDef net_addr_def(
"NetAddrDlg", 0);
156 net_addr_def.
Load(
"NetAddrDlg");
157 netAddrDlg =
new(__FILE__,__LINE__)
NetAddrDlg(screen, net_addr_def,
this);
159 FormDef net_pass_def(
"NetPassDlg", 0);
160 net_pass_def.
Load(
"NetPassDlg");
161 netPassDlg =
new(__FILE__,__LINE__)
NetPassDlg(screen, net_pass_def,
this);
163 FormDef msn_edit_def(
"MsnEditDlg", 0);
164 msn_edit_def.
Load(
"MsnEditDlg");
165 msnEditDlg =
new(__FILE__,__LINE__)
MsnEditDlg(screen, msn_edit_def,
this);
167 FormDef msn_nav_def(
"MsnEditNavDlg", 0);
168 msn_nav_def.
Load(
"MsnEditNavDlg");
169 msnEditNavDlg =
new(__FILE__,__LINE__)
MsnEditNavDlg(screen, msn_nav_def,
this);
171 FormDef msn_elem_def(
"MsnElemDlg", 0);
172 msn_elem_def.
Load(
"MsnElemDlg");
173 msnElemDlg =
new(__FILE__,__LINE__)
MsnElemDlg(screen, msn_elem_def,
this);
175 FormDef msn_event_def(
"MsnEventDlg", 0);
176 msn_event_def.
Load(
"MsnEventDlg");
177 msnEventDlg =
new(__FILE__,__LINE__)
MsnEventDlg(screen, msn_event_def,
this);
179 FormDef msn_def(
"MsnSelectDlg", 0);
180 msn_def.
Load(
"MsnSelectDlg");
181 msnSelectDlg =
new(__FILE__,__LINE__)
MsnSelectDlg(screen, msn_def,
this);
183 FormDef player_def(
"PlayerDlg", 0);
184 player_def.
Load(
"PlayerDlg");
185 playdlg =
new(__FILE__,__LINE__)
PlayerDlg(screen, player_def,
this);
187 FormDef award_def(
"AwardDlg", 0);
188 award_def.
Load(
"AwardDlg");
189 awarddlg =
new(__FILE__,__LINE__)
AwardShowDlg(screen, award_def,
this);
192 joy_def.
Load(
"JoyDlg");
193 joydlg =
new(__FILE__,__LINE__)
JoyDlg(screen, joy_def,
this);
196 key_def.
Load(
"KeyDlg");
197 keydlg =
new(__FILE__,__LINE__)
KeyDlg(screen, key_def,
this);
199 FormDef first_def(
"FirstTimeDlg", 0);
200 first_def.
Load(
"FirstTimeDlg");
201 firstdlg =
new(__FILE__,__LINE__)
FirstTimeDlg(screen, first_def,
this);
203 FormDef mod_info_def(
"ModInfoDlg", 0);
204 mod_info_def.
Load(
"ModInfoDlg");
205 modInfoDlg =
new(__FILE__,__LINE__)
ModInfoDlg(screen, mod_info_def,
this);
207 FormDef confirm_def(
"ConfirmDlg", 0);
208 confirm_def.
Load(
"ConfirmDlg");
209 confirmdlg =
new(__FILE__,__LINE__)
ConfirmDlg(screen, confirm_def,
this);
211 FormDef load_def(
"LoadDlg", 0);
212 load_def.
Load(
"LoadDlg");
213 loadDlg =
new(__FILE__,__LINE__)
LoadDlg(screen, load_def);
215 fadewin =
new(__FILE__,__LINE__)
Window(screen, 0, 0, 1, 1);
216 fadeview =
new(__FILE__,__LINE__)
FadeView(fadewin, 2, 0, 0);
232 if (netClientDlg) screen->
DelWindow(netClientDlg);
233 if (netAddrDlg) screen->
DelWindow(netAddrDlg);
234 if (netPassDlg) screen->
DelWindow(netPassDlg);
235 if (netLobbyDlg) screen->
DelWindow(netLobbyDlg);
236 if (netServerDlg) screen->
DelWindow(netServerDlg);
237 if (netUnitDlg) screen->
DelWindow(netUnitDlg);
239 if (cmpSelectDlg) screen->
DelWindow(cmpSelectDlg);
240 if (awarddlg) screen->
DelWindow(awarddlg);
241 if (firstdlg) screen->
DelWindow(firstdlg);
242 if (msnSelectDlg) screen->
DelWindow(msnSelectDlg);
243 if (msnEditDlg) screen->
DelWindow(msnEditDlg);
244 if (msnElemDlg) screen->
DelWindow(msnElemDlg);
245 if (msnEventDlg) screen->
DelWindow(msnEventDlg);
246 if (msnEditNavDlg) screen->
DelWindow(msnEditNavDlg);
247 if (tacRefDlg) screen->
DelWindow(tacRefDlg);
255 if (modInfoDlg) screen->
DelWindow(modInfoDlg);
260 if (confirmdlg) screen->
DelWindow(confirmdlg);
288 delete msnEditNavDlg;
338 if (menudlg && menudlg->
IsShown())
341 if (exitdlg && exitdlg->
IsShown())
344 if (joydlg && joydlg->
IsShown())
347 if (keydlg && keydlg->
IsShown())
350 if (ctldlg && ctldlg->
IsShown())
353 if (optdlg && optdlg->
IsShown())
356 if (auddlg && auddlg->
IsShown())
359 if (viddlg && viddlg->
IsShown())
362 if (confirmdlg && confirmdlg->
IsShown())
365 if (playdlg && playdlg->
IsShown())
368 if (msnSelectDlg && msnSelectDlg->
IsShown())
371 if (msnEditNavDlg && msnEditNavDlg->
IsShown())
374 if (firstdlg && firstdlg->
IsShown())
377 if (awarddlg && awarddlg->
IsShown())
380 if (cmpSelectDlg && cmpSelectDlg->
IsShown())
383 if (netClientDlg && netClientDlg->
IsShown())
386 if (netAddrDlg && netAddrDlg->
IsShown())
389 if (netPassDlg && netPassDlg->
IsShown())
392 if (netLobbyDlg && netLobbyDlg->
IsShown())
395 if (netServerDlg && netServerDlg->
IsShown())
398 if (netUnitDlg && netUnitDlg->
IsShown())
401 if (loadDlg && loadDlg->
IsShown())
404 if (tacRefDlg && tacRefDlg->
IsShown())
413 bool processed =
false;
414 if (joydlg && joydlg->
IsShown()) {
419 else if (keydlg && keydlg->
IsShown()) {
424 else if (msnElemDlg && msnElemDlg->
IsShown()) {
429 else if (msnEventDlg && msnEventDlg->
IsShown()) {
434 else if (netAddrDlg && netAddrDlg->
IsShown()) {
439 else if (netPassDlg && netPassDlg->
IsShown()) {
444 else if (netServerDlg && netServerDlg->
IsShown()) {
449 else if (netUnitDlg && netUnitDlg->
IsShown()) {
454 else if (netLobbyDlg && netLobbyDlg->
IsShown()) {
459 else if (netClientDlg && netClientDlg->
IsShown()) {
464 else if (exitdlg && exitdlg->
IsShown()) {
468 else if (cmpSelectDlg && cmpSelectDlg->
IsShown()) {
475 else if (menudlg && !menudlg->
IsShown()) {
493 else if (current_dlg == msnSelectDlg) {
538 current_dlg = cmpSelectDlg;
540 cmpSelectDlg->
Show();
550 current_dlg = msnSelectDlg;
553 msnSelectDlg->
Show();
582 if (modDlg && modInfoDlg) {
600 bool nav_shown =
false;
601 if (msnEditNavDlg && msnEditNavDlg->
IsShown())
607 msnEditNavDlg->
Show();
628 if (msnEditDlg && msnEditDlg->
IsShown())
631 if (msnEditNavDlg && msnEditNavDlg->
IsShown())
646 if (msnEditDlg && msnEditDlg->
IsShown())
649 if (msnEditNavDlg && msnEditNavDlg->
IsShown())
663 if (msnEditNavDlg && !msnEditNavDlg->
IsShown()) {
665 msnEditNavDlg->
Show();
676 if (menudlg && firstdlg) {
730 netClientDlg->
Show();
744 netClientDlg->
Show();
790 netServerDlg->
Show();
896 if (msnSelectDlg && msnSelectDlg->
IsShown())
899 if (playdlg && playdlg->
IsShown())
914 if (msnSelectDlg && msnSelectDlg->
IsShown())
917 if (playdlg && playdlg->
IsShown())
927 if (menudlg && menudlg->
IsShown())
942 if (menudlg && menudlg->
IsShown())
972 msnEditNavDlg->
Hide();
983 if (msnEditDlg && msnEditDlg->
IsShown())
986 if (msnEditNavDlg && msnEditNavDlg->
IsShown())
998 if (msnEditDlg && msnEditDlg->
IsShown())
1001 if (msnEditNavDlg && msnEditNavDlg->
IsShown())
1010 return msnEditNavDlg && msnEditNavDlg->
IsShown();
1016 MenuScreen::HideAll()
1022 if (menudlg) menudlg->
Hide();
1023 if (exitdlg) exitdlg->
Hide();
1024 if (auddlg) auddlg->
Hide();
1025 if (viddlg) viddlg->
Hide();
1026 if (ctldlg) ctldlg->
Hide();
1027 if (optdlg) optdlg->
Hide();
1028 if (joydlg) joydlg->
Hide();
1029 if (keydlg) keydlg->
Hide();
1030 if (playdlg) playdlg->
Hide();
1031 if (confirmdlg) confirmdlg->
Hide();
1032 if (modDlg) modDlg->
Hide();
1033 if (modInfoDlg) modInfoDlg->
Hide();
1034 if (msnSelectDlg) msnSelectDlg->
Hide();
1035 if (msnEditDlg) msnEditDlg->
Hide();
1036 if (msnElemDlg) msnElemDlg->
Hide();
1037 if (msnEventDlg) msnEventDlg->
Hide();
1038 if (msnEditNavDlg) msnEditNavDlg->
Hide();
1039 if (netClientDlg) netClientDlg->
Hide();
1040 if (netAddrDlg) netAddrDlg->
Hide();
1041 if (netPassDlg) netPassDlg->
Hide();
1042 if (netLobbyDlg) netLobbyDlg->
Hide();
1043 if (netServerDlg) netServerDlg->
Hide();
1044 if (netUnitDlg) netUnitDlg->
Hide();
1045 if (firstdlg) firstdlg->
Hide();
1046 if (awarddlg) awarddlg->
Hide();
1047 if (cmpSelectDlg) cmpSelectDlg->
Hide();
1048 if (tacRefDlg) tacRefDlg->
Hide();
1049 if (loadDlg) loadDlg->
Hide();
1057 if (ctldlg) ctldlg->
Apply();
1058 if (optdlg) optdlg->
Apply();
1059 if (auddlg) auddlg->
Apply();
1060 if (viddlg) viddlg->
Apply();
1061 if (modDlg) modDlg->
Apply();
1069 if (ctldlg) ctldlg->
Cancel();
1070 if (optdlg) optdlg->
Cancel();
1071 if (auddlg) auddlg->
Cancel();
1072 if (viddlg) viddlg->
Cancel();
1073 if (modDlg) modDlg->
Cancel();