00001 //============================================================================
00002 // Save Game menu.
00003 //
00004 //============================================================================
00005 class XIIIMenuStory extends XIIIWindow;
00006
00007
00008 var XIIITextureButton Doc1Button, Doc2Button, Doc3Button, Doc4Button, Doc5Button, Doc6Button, Doc7Button, Doc8Button, Doc9Button, Doc10Button, Doc11Button, Doc12Button;
00009 var XIIILabel Doc1Label, Doc2Label, Doc3Label, Doc4Label, Doc5Label, Doc6Label, Doc7Label, Doc8Label, Doc9Label, Doc10Label, Doc11Label, Doc12Label;
00010 var localized string TitleText, Doc1Text, Doc2Text, Doc3Text, Doc4Text, Doc5Text, Doc6Text, Doc7Text, Doc8Text, Doc9Text, Doc10Text, Doc11Text, Doc12Text;
00011
00012 var texture tBackGround[20], tHighlight[20], tBackPlane[8];
00013 var string sBackGround[20], sHighlight[20], sBackPlane[8];
00014
00015 var localized string Doc1LabText, Doc2LabText, Doc3LabText, Doc4LabText, Doc5LabText, Doc6LabText, Doc7LabText, Doc8LabText;
00016
00017
00018
00019 var int MaxSlots;
00020 var int ReturnCode;
00021 var int IsEmpty;
00022 var int i;
00023 var int Year;
00024 var byte Month, Day, Hour, Min;
00025
00026 var string Description;
00027
00028 var int Time;
00029 var int MyLastTime;
00030 var int MyLastSlot;
00031 var int NbMap;
00032 var int ImageNb;
00033 var bool bPageShowNext;
00034
00035 event timer() //(float numb,bool bFlag)
00036 {
00037 ImageNb++;
00038
00039 if (NbMap < 3)
00040 {
00041 if (ImageNb > 2*NbMap+1)
00042 {
00043 ImageNb = NbMap*2+1;
00044 bPageShowNext=false;
00045 }
00046 }
00047 }
00048
00049
00050 //============================================================================
00051 function Created()
00052 {
00053 local int i;
00054
00055 Super.Created();
00056
00057 settimer(3,true);
00058
00059 for (i=0; i<8; i++)
00060 {
00061 tBackPlane[i] = texture(DynamicLoadObject(sBackPlane[i], class'Texture'));
00062 }
00063
00064 for (i=0; i<20; i++)
00065 {
00066 tHighlight[i] = texture(DynamicLoadObject(sHighlight[i], class'Texture'));
00067 //tBackGround[i] = texture(DynamicLoadObject(sBackGround[i], class'Texture'));
00068 }
00069
00070 if (Doc1LabText != "")
00071 InitLabel(Doc1Label, 20, 39*fScaleTo, 250, 30*fScaleTo, Doc1LabText);
00072 if (Doc2LabText != "")
00073 InitLabel(Doc2Label, 225, 150*fScaleTo, 250, 30*fScaleTo, Doc2LabText);
00074 if (Doc3LabText != "")
00075 InitLabel(Doc3Label, 365, 40*fScaleTo, 250, 30*fScaleTo, Doc3LabText);
00076 if (Doc4LabText != "")
00077 InitLabel(Doc4Label, 220, 280*fScaleTo, 250, 30*fScaleTo, Doc4LabText);
00078 if (Doc5LabText != "")
00079 InitLabel(Doc5Label, 355, 160*fScaleTo, 250, 30*fScaleTo, Doc5LabText);
00080 if (Doc6LabText != "")
00081 InitLabel(Doc6Label, 370, 160*fScaleTo, 250, 30*fScaleTo, Doc6LabText);
00082 if (Doc7LabText != "")
00083 InitLabel(Doc7Label, 20, 390*fScaleTo, 250, 30*fScaleTo, Doc7LabText);
00084 if (Doc8LabText != "")
00085 InitLabel(Doc8Label, 295, 390*fScaleTo, 250, 30*fScaleTo, Doc8LabText);
00086
00087
00088 /*DrawStretchedTexture(C, 30*fRatioX, 30*fRatioY*fScaleTo, 180*fRatioX, 280*fRatioY*fScaleTo, tBackPlane[0]);
00089 DrawStretchedTexture(C, 220*fRatioX, 30*fRatioY*fScaleTo, 90*fRatioX, 140*fRatioY*fScaleTo, tBackPlane[1]);
00090 DrawStretchedTexture(C, 320*fRatioX, 30*fRatioY*fScaleTo, 290*fRatioX, 140*fRatioY*fScaleTo, tBackPlane[2]);
00091 DrawStretchedTexture(C, 220*fRatioX, 180*fRatioY*fScaleTo, 120*fRatioX, 130*fRatioY*fScaleTo, tBackPlane[3]);
00092 DrawStretchedTexture(C, 350*fRatioX, 180*fRatioY*fScaleTo, 120*fRatioX, 130*fRatioY*fScaleTo, tBackPlane[4]);
00093 DrawStretchedTexture(C, 480*fRatioX, 180*fRatioY*fScaleTo, 130*fRatioX, 230*fRatioY*fScaleTo, tBackPlane[5]);
00094 DrawStretchedTexture(C, 30*fRatioX, 320*fRatioY*fScaleTo, 250*fRatioX, 90*fRatioY*fScaleTo, tBackPlane[6]);
00095 DrawStretchedTexture(C, 290*fRatioX, 320*fRatioY*fScaleTo, 180*fRatioX, 90*fRatioY*fScaleTo, tBackPlane[7]);*/
00096
00097
00098 }
00099
00100
00101 //============================================================================
00102 function ShowWindow()
00103 {
00104 Super.ShowWindow();
00105 bShowBCK = true;
00106 bShowNXT=bPageShowNext;
00107 }
00108
00109
00110 //============================================================================
00111 function Paint(Canvas C, float X, float Y)
00112 {
00113 local float fScale, fHeight, W, H;
00114 local int i, j, k;
00115
00116 super.paint(C,X,Y);
00117 // image backrgound
00118 C.bUseBorder = false;
00119
00120 if (ImageNb <= NbMap*2+1)
00121 {
00122
00123 switch(ImageNb)
00124 {
00125 case 0 :
00126 C.bUseBorder = true;
00127 ShowWindow();
00128 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, myRoot.FondMenu);
00129 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, myRoot.FondMenu);
00130 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, myRoot.FondMenu);
00131 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00132 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo,myRoot.FondMenu);
00133 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo,myRoot.FondMenu);
00134 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00135 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,myRoot.FondMenu);
00136 DrawLabel(C, Doc4Label);
00137 break;
00138 case 1 :
00139 C.bUseBorder = true;
00140 ShowWindow();
00141 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00142 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, myRoot.FondMenu);
00143 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, myRoot.FondMenu);
00144 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00145 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo,myRoot.FondMenu);
00146 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo,myRoot.FondMenu);
00147 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00148 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,myRoot.FondMenu);
00149 DrawLabel(C, Doc1Label);
00150 DrawLabel(C, Doc4Label);
00151 break;
00152 case 2 :
00153 C.bUseBorder = true;
00154 ShowWindow();
00155 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00156 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00157 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, myRoot.FondMenu);
00158 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00159 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo,myRoot.FondMenu);
00160 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo,myRoot.FondMenu);
00161 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00162 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,myRoot.FondMenu);
00163 DrawLabel(C, Doc1Label);
00164 DrawLabel(C, Doc2Label);
00165 DrawLabel(C, Doc4Label);
00166 break;
00167 case 3 :
00168 C.bUseBorder = true;
00169 ShowWindow();
00170 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00171 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00172 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[2]);
00173 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00174 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo,myRoot.FondMenu);
00175 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo,myRoot.FondMenu);
00176 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00177 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,myRoot.FondMenu);
00178 DrawLabel(C, Doc1Label);
00179 DrawLabel(C, Doc2Label);
00180 DrawLabel(C, Doc3Label);
00181 DrawLabel(C, Doc4Label);
00182 break;
00183 case 4 :
00184 C.bUseBorder = true;
00185 ShowWindow();
00186 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00187 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00188 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[2]);
00189 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00190 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo, tBackPlane[4]);
00191 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo,myRoot.FondMenu);
00192 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00193 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,myRoot.FondMenu);
00194 DrawLabel(C, Doc1Label);
00195 DrawLabel(C, Doc2Label);
00196 DrawLabel(C, Doc3Label);
00197 DrawLabel(C, Doc4Label);
00198 DrawLabel(C, Doc5Label);
00199 break;
00200 case 5 :
00201 C.bUseBorder = true;
00202 ShowWindow();
00203 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00204 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00205 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[2]);
00206 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00207 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo, tBackPlane[4]);
00208 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo, tBackPlane[5]);
00209 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00210 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,myRoot.FondMenu);
00211 DrawLabel(C, Doc1Label);
00212 DrawLabel(C, Doc2Label);
00213 DrawLabel(C, Doc3Label);
00214 DrawLabel(C, Doc4Label);
00215 DrawLabel(C, Doc5Label);
00216 DrawLabel(C, Doc6Label);
00217 break;
00218 case 6 :
00219 C.bUseBorder = true;
00220 ShowWindow();
00221 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00222 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00223 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[2]);
00224 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00225 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo, tBackPlane[4]);
00226 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo, tBackPlane[5]);
00227 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, myRoot.FondMenu);
00228 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,tBackPlane[7]);
00229 DrawLabel(C, Doc1Label);
00230 DrawLabel(C, Doc2Label);
00231 DrawLabel(C, Doc3Label);
00232 DrawLabel(C, Doc4Label);
00233 DrawLabel(C, Doc5Label);
00234 DrawLabel(C, Doc6Label);
00235 DrawLabel(C, Doc8Label);
00236 break;
00237 case 7 :
00238 C.bUseBorder = true;
00239 ShowWindow();
00240 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00241 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00242 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[2]);
00243 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00244 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo, tBackPlane[4]);
00245 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo, tBackPlane[5]);
00246 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, tBackPlane[6]);
00247 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,tBackPlane[7]);
00248 DrawLabel(C, Doc1Label);
00249 DrawLabel(C, Doc2Label);
00250 DrawLabel(C, Doc3Label);
00251 DrawLabel(C, Doc4Label);
00252 DrawLabel(C, Doc5Label);
00253 DrawLabel(C, Doc6Label);
00254 DrawLabel(C, Doc7Label);
00255 DrawLabel(C, Doc8Label);
00256 break;
00257 }
00258 }
00259 if ((ImageNb > 7) && (NbMap > 3))
00260 Controller.OpenMenu("XIDInterf.XIIIMenuStory2",,Description);
00261 if ((ImageNb > 7) && (NbMap == 3))
00262 {
00263 C.bUseBorder = true;
00264 ShowWindow();
00265 DrawStretchedTexture(C, 55*fRatioX, 33*fRatioY*fScaleTo, 141*fRatioX, 268*fRatioY*fScaleTo, tBackPlane[0]);
00266 DrawStretchedTexture(C, 207*fRatioX, 33*fRatioY*fScaleTo, 82*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[1]);
00267 DrawStretchedTexture(C, 300*fRatioX, 33*fRatioY*fScaleTo, 285*fRatioX, 145*fRatioY*fScaleTo, tBackPlane[2]);
00268 DrawStretchedTexture(C, 207*fRatioX, 188*fRatioY*fScaleTo, 123*fRatioX, 113*fRatioY*fScaleTo,tBackPlane[3]);
00269 DrawStretchedTexture(C, 346*fRatioX, 188*fRatioY*fScaleTo, 117*fRatioX, 113*fRatioY*fScaleTo, tBackPlane[4]);
00270 DrawStretchedTexture(C, 475*fRatioX, 188*fRatioY*fScaleTo, 110*fRatioX, 243*fRatioY*fScaleTo, tBackPlane[5]);
00271 DrawStretchedTexture(C, 55*fRatioX, 312*fRatioY*fScaleTo, 236*fRatioX, 119*fRatioY*fScaleTo, tBackPlane[6]);
00272 DrawStretchedTexture(C, 300*fRatioX, 312*fRatioY*fScaleTo, 163*fRatioX, 119*fRatioY*fScaleTo,tBackPlane[7]);
00273 DrawLabel(C, Doc1Label);
00274 DrawLabel(C, Doc2Label);
00275 DrawLabel(C, Doc3Label);
00276 DrawLabel(C, Doc4Label);
00277 DrawLabel(C, Doc5Label);
00278 DrawLabel(C, Doc6Label);
00279 DrawLabel(C, Doc7Label);
00280 DrawLabel(C, Doc8Label);
00281 }
00282
00283
00284 /* Title
00285 C.bUseBorder = true;
00286 DrawStretchedTexture(C, 240*fRatioX, 20*fRatioY, 160*fRatioX, 32*fRatioY, myRoot.FondMenu);
00287 C.TextSize(Caps(TitleText), W, H);
00288 C.DrawColor = BlackColor;
00289 C.SetPos((240 + (160-W)/2)*fRatioX, (20+(32-H)/2)*fRatioY); C.DrawText(Caps(TitleText), false);
00290 C.bUseBorder = false;
00291 C.DrawColor = WhiteColor;*/
00292
00293 }
00294
00295
00296 //============================================================================
00297 function bool InternalOnKeyEvent(out byte Key, out byte State, float delta)
00298 {
00299 local int index;
00300 local bool bLeft, bRight, bUp, bDown;
00301
00302 if (State==1)// IST_Press // to avoid auto-repeat
00303 {
00304 if ((Key==0x08/*IK_Escape*/) || (Key==0x1B))
00305 {
00306 myRoot.CloseMenu(true);
00307 return true;
00308 log("conspiracy closed");
00309 }
00310 if ((Key==0x0D/*IK_Enter*/) || (Key==0x01))
00311 {
00312 ImageNb++;
00313
00314 if (NbMap < 3)
00315 {
00316 if (ImageNb > 2*NbMap+1)
00317 {
00318 ImageNb = NbMap*2+1;
00319 bPageShowNext=false;
00320 }
00321 }
00322 }
00323
00324 }
00325 return super.InternalOnKeyEvent(Key, state, delta);
00326 }
00327
00328
00329
00330 event HandleParameters(string Param1, string Param2)
00331 {
00332 // interpret info at page load
00333 // how many maps have we been through
00334 Description = Param1;
00335 log("Param1="$Description);
00336 if (Description=="Brighton Beach 1")
00337 NbMap=0;
00338 if ((Description=="Brighton Beach 2") || (Description=="Brighton Beach 3"))
00339 NbMap=1;
00340 if ((Description=="Winslow Bank") || (Description=="Winslow Bank 2") || (Description=="Winslow Bank 3"))
00341 NbMap=2;
00342 if ((Description=="FBI") || (Description=="FBI 2") || (Description=="FBI 3"))
00343 NbMap=3;
00344 if ((Description=="Major Jones") || (Description=="Major Jones 1") || (Description=="Major Jones 2") || (Description=="Major Jones 3"))
00345 NbMap=4;
00346 if (Description=="Emerald Base bridge")
00347 NbMap=5;
00348 if (Description=="Emerald Base roof")
00349 NbMap=6;
00350 if ((Description=="Carrington's cell") || (Description=="Carrington's cell 1") || (Description=="Carrington's cell 2") || (Description=="Carrington's cell 3"))
00351 NbMap=7;
00352 if (Description=="Cable car station")
00353 NbMap=8;
00354 if ((Description=="Cable car") || (Description=="Cable car 1"))
00355 NbMap=9;
00356 if ((Description=="Kellownee Lake") || (Description=="Kellownee Lake 1"))
00357 NbMap=10;
00358 if ((Description=="Kellownee hideout") || (Description=="Kellownee hideout 1"))
00359 NbMap=11;
00360 if ((Description=="Plain Rock 1") || (Description=="Plain Rock 2") || (Description=="Plain Rock 3") || (Description=="Plain Rock 4"))
00361 NbMap=12;
00362 if ((Description=="Doc Johansson") || (Description=="Doc Johansson 1"))
00363 NbMap=13;
00364 if ((Description=="Canyon 1") || (Description=="Canyon 2") || (Description=="Canyon 3"))
00365 NbMap=14;
00366 if ((Description=="Canyon 4") || (Description=="Canyon 5") || (Description=="Canyon 6"))
00367 NbMap=15;
00368 if (Description=="Sewage")
00369 NbMap=16;
00370 if ((Description=="SPADS camp 1") || (Description=="SPADS camp 2") || (Description=="SPADS camp 3"))
00371 NbMap=17;
00372 if ((Description=="McCall") || (Description=="McCall 1"))
00373 NbMap=18;
00374 if ((Description=="Submarine base") || (Description=="Submarine base 1"))
00375 NbMap=19;
00376 if ((Description=="Submarine 1") || (Description=="Submarine 2"))
00377 NbMap=20;
00378 if ((Description=="Submarine 3") || (Description=="Submarine 4"))
00379 NbMap=21;
00380 if ((Description=="Sabotage") || (Description=="Sabotage 1"))
00381 NbMap=22;
00382 if ((Description=="Quay 33") || (Description=="Quay 33-1"))
00383 NbMap=23;
00384 if ((Description=="Bristol Suites Hotel") || (Description=="Bristol Suites Hotel 1"))
00385 NbMap=24;
00386 if ((Description=="Sanctuary garden") || (Description=="Sanctuary garden 1"))
00387 NbMap=25;
00388 if ((Description=="Sanctuary hall") || (Description=="Sanctuary hall 1"))
00389 NbMap=26;
00390 if ((Description=="Sanctuary crypt") || (Description=="Sanctuary crypt 1"))
00391 NbMap=27;
00392 if ((Description=="Sanctuary cliff") || (Description=="Sanctuary cliff 1"))
00393 NbMap=28;
00394 if ((Description=="SSH1 base admission") || (Description=="SSH1 base admission 1") || (Description=="SSH1 base admission 2"))
00395 NbMap=29;
00396 if ((Description=="SSH1 trap") || (Description=="SSH1 trap 1"))
00397 NbMap=30;
00398 if (Description=="Total Red")
00399 NbMap=31;
00400 if ((Description=="SSH1 final") || (Description=="SSH1 final 1"))
00401 NbMap=32;
00402 if (Description=="Lady Bee")
00403 NbMap=33;
00404 if (Description=="Bove President")
00405 NbMap=0;
00406 //else
00407 // NbMap=0;
00408 log("NbMap = "$NbMap);
00409 ImageNb = 0;
00410 }
00411
00412
00413
00414 //============================================================================
00415
00416
00417 defaultproperties
00418 {
00419 TitleText="Conspiracy"
00420 Doc1Text="Document1"
00421 Doc2Text="Document2"
00422 Doc3Text="Document3"
00423 Doc4Text="Document4"
00424 Doc5Text="Document5"
00425 Doc6Text="Document6"
00426 Doc7Text="Document7"
00427 Doc8Text="Document8"
00428 sHighlight(0)="XIIIMenuStart.conspi.xteteI"
00429 sHighlight(1)="XIIIMenuStart.conspi.xteteII"
00430 sHighlight(2)="XIIIMenuStart.conspi.xteteIII"
00431 sHighlight(3)="XIIIMenuStart.conspi.xteteIV"
00432 sHighlight(4)="XIIIMenuStart.conspi.xteteV"
00433 sHighlight(5)="XIIIMenuStart.conspi.xteteVI"
00434 sHighlight(6)="XIIIMenuStart.conspi.xteteVII"
00435 sHighlight(7)="XIIIMenuStart.conspi.xteteVIII"
00436 sHighlight(8)="XIIIMenuStart.conspi.xteteIX"
00437 sHighlight(9)="XIIIMenuStart.conspi.xteteX"
00438 sHighlight(10)="XIIIMenuStart.conspi.xteteXI"
00439 sHighlight(11)="XIIIMenuStart.conspi.xteteXII"
00440 sHighlight(12)="XIIIMenuStart.conspi.xteteXII"
00441 sHighlight(13)="XIIIMenuStart.conspi.xteteXIV"
00442 sHighlight(14)="XIIIMenuStart.conspi.xteteXV"
00443 sHighlight(15)="XIIIMenuStart.conspi.xteteXVI"
00444 sHighlight(16)="XIIIMenuStart.conspi.teteXVII"
00445 sHighlight(17)="XIIIMenuStart.conspi.xteteXVIII"
00446 sHighlight(18)="XIIIMenuStart.conspi.xteteXIX"
00447 sHighlight(19)="XIIIMenuStart.conspi.xteteXX"
00448 sBackPlane(0)="XIIIMenuStart.storyline.storyline1image1"
00449 sBackPlane(1)="XIIIMenuStart.storyline.storyline1image2"
00450 sBackPlane(2)="XIIIMenuStart.storyline.storyline1image3"
00451 sBackPlane(3)="XIIIMenuStart.storyline.storyline1image4"
00452 sBackPlane(4)="XIIIMenuStart.storyline.storyline1image5"
00453 sBackPlane(5)="XIIIMenuStart.storyline.storyline1image6"
00454 sBackPlane(6)="XIIIMenuStart.storyline.storyline1image7"
00455 sBackPlane(7)="XIIIMenuStart.storyline.storyline1image8"
00456 bPageShowNext=True
00457 }
|