XIDInterf
Class XIIIMenuStory6

source: C:\XIII\XIDInterf\Classes\XIIIMenuStory6.uc
Core.Object
   |
   +--GUI.GUI
      |
      +--GUI.GUIComponent
         |
         +--GUI.GUIMultiComponent
            |
            +--GUI.GUIPage
               |
               +--XIDInterf.XIIIWindow
                  |
                  +--XIDInterf.XIIIMenuStory6
Direct Known Subclasses:None

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

End Source Code