## XIDInterf
Class XIIIMenuStory7

source: C:\XIII\XIDInterf\Classes\XIIIMenuStory7.uc

    Core.Object
       |
       +--GUI.GUI
          |
          +--GUI.GUIComponent
             |
             +--GUI.GUIMultiComponent
                |
                +--GUI.GUIPage
                   |
                   +--XIDInterf.XIIIWindow
                      |
                      +--XIDInterf.XIIIMenuStory7

Direct Known Subclasses:None

class XIIIMenuStory7
extends XIDInterf.XIIIWindow

    //============================================================================
    // Save Game menu.
    //
    //============================================================================

Variables
`string` | `Description`
`Doc11Button,` | `Doc12Button`
`Doc11Label,` | `Doc12Label`
`Doc11Text,` | `Doc12Text`
`Doc7LabText,` | `Doc8LabText`
`int` | `ImageNb`
`int` | `IsEmpty`
`int` | `MaxSlots`
`Hour,` | `Min`
`int` | `MyLastSlot`
`int` | `MyLastTime`
`int` | `NbMap`
`int` | `ReturnCode`
`int` | `Time`
`int` | `Year`
`bool` | `bPageShowNext`
`int` | `i`
`sHighlight[20],` | `sBackPlane[8]`
`tHighlight[20],` | `tBackPlane[8]`

Function Summary
`void` | `Created()`
    //============================================================================
`bool` | `InternalOnKeyEvent(out byte, out byte, float delta)`
    //============================================================================
`void` | `Paint(Canvas C, float X, float Y)`
    //============================================================================
`void` | `ShowWindow()`
    //============================================================================

Source Code

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

End Source Code