## XIDInterf
Class XIIIMenuConspiracy

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

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

Direct Known Subclasses:None

class XIIIMenuConspiracy
extends XIDInterf.XIIIWindow

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

Variables
`string` | `ConspJobs[20]`
`string` | `Description`
`Doc11Button,` | `Doc12Button`
`Doc11Label,` | `Doc12Label`
`Doc11Text,` | `Doc12Text`
`XIIITextureButton` | `DocXButton[20]`
`int` | `IsEmpty`
`int` | `MaxSlots`
`Hour,` | `Min`
`int` | `MyLastSlot`
`int` | `MyLastTime`
`int` | `NbMap`
`int` | `ReturnCode`
`int` | `Time`
`int` | `Year`
`int` | `bLocalBorder[20]`
`int` | `dSize[20]`
`sHighlight[20],` | `sBackPlane[4]`
`tHighlight[20],` | `tBackPlane[4]`
`string` | `tmpjobs[20]`

Function Summary
`void` | `AfterPaint(Canvas C, float X, float Y)`
`void` | `Created()`
    //============================================================================
`bool` | `InternalOnClick(GUIComponent Sender)`
    //============================================================================
    // Called when a button is clicked
`bool` | `InternalOnKeyEvent(out byte, out byte, float delta)`
    //============================================================================
`void` | `Paint(Canvas C, float X, float Y)`
    //============================================================================
`void` | `ShowWindow()`
    //============================================================================
`void` | `refreshConsp()`

Source Code

    00001	//============================================================================
    00002	// Save Game menu.
    00003	//
    00004	//============================================================================
    00005	class XIIIMenuConspiracy 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 XIIITextureButton DocXButton[20];
    00013	var localized string ConspJobs[20];
    00014	var string tmpjobs[20];
    00015
    00016	var int dSize[20];
    00017
    00018	var texture tBackGround[20], tHighlight[20], tBackPlane[4];
    00019	var string sBackGround[20], sHighlight[20], sBackPlane[4];
    00020
    00021	var int MaxSlots;
    00022	var int ReturnCode;
    00023	var int IsEmpty;
    00024	//var int i;
    00025	var int Year;
    00026	var byte Month, Day, Hour, Min;
    00027
    00028	var string Description;
    00029
    00030	var int Time;
    00031	var int MyLastTime;
    00032	var int MyLastSlot;
    00033	var int NbMap;
    00034	var int bLocalBorder[20];
    00035
    00036	//============================================================================
    00037	function Created()
    00038	{
    00039	    local int i, j, k;
    00040
    00041	    Super.Created();
    00042
    00043	    for (i=0; i<4; i++)
    00044	    {
    00045	        tBackPlane[i] = texture(DynamicLoadObject(sBackPlane[i], class'Texture'));
    00046	    }
    00047
    00048	    for (i=0; i<20; i++)
    00049	    {
    00050	        tHighlight[i] = texture(DynamicLoadObject(sHighlight[i], class'Texture'));
    00051	        //tBackGround[i] = texture(DynamicLoadObject(sBackGround[i], class'Texture'));
    00052	    }
    00053
    00054
    00055		for (j=0; j<4; j++)
    00056	        {
    00057			for (i=0; i<5; i++)
    00058	    		{
    00059
    00060					//if (tBackGround[k] != none)
    00061					 DocXButton[k] = XIIITextureButton(CreateControl(class'XIIITextureButton', (i*77+178)*fRatioX, (j*100+44)*fRatioY, 63*fRatioX, 64*fRatioY));
    00062				     DocXButton[k].Hint=tmpJobs[k];
    00063				     DocXButton[k].tFirstTex[0]=tHighlight[k];
    00064	   			     DocXButton[k].tFirstTex[1]=tHighlight[k];
    00065				     DocXButton[k].bUseBorder=true;
    00066				     Controls[k]=DocXButton[k];
    00067				k++;
    00068
    00069			}
    00070			i=0;
    00071		}
    00072
    00073
    00074	}
    00075
    00076
    00077	//============================================================================
    00078	function ShowWindow()
    00079	{
    00080	    Super.ShowWindow();
    00081	    bShowBCK = true;
    00082	    //bShowSEL = true;
    00083	}
    00084
    00085
    00086	//============================================================================
    00087	function Paint(Canvas C, float X, float Y)
    00088	{
    00089		local float fScale, fHeight, W, H;
    00090		local int i, j, k, index;
    00091
    00092		// big black border behind documents
    00093		 C.bUseBorder = true;
    00094		 DrawStretchedTexture(C, 170*fRatioX, 35*fRatioY, 396*fRatioX, 399*fRatioY*fScaleTo, myRoot.FondMenu);
    00095
    00096		// image backrgound
    00097		 C.bUseBorder = false;
    00098		 DrawStretchedTexture(C, 170*fRatioX, 35*fRatioY*fScaleTo, 198*fRatioX, 200*fRatioY*fScaleTo, tBackPlane[0]);
    00099		 DrawStretchedTexture(C, 368*fRatioX, 35*fRatioY*fScaleTo, 198*fRatioX, 200*fRatioY*fScaleTo, tBackPlane[1]);
    00100		 DrawStretchedTexture(C, 170*fRatioX, 233*fRatioY*fScaleTo, 198*fRatioX, 200*fRatioY*fScaleTo, tBackPlane[2]);
    00101		 DrawStretchedTexture(C, 368*fRatioX, 233*fRatioY*fScaleTo, 198*fRatioX, 200*fRatioY*fScaleTo, tBackPlane[3]);
    00102
    00103
    00104		// image behind title
    00105		//DrawStretchedTexture(C, 40*fRatioX, 36*fRatioY, 180*fRatioX, 100*fRatioY, tBackGround[0]);
    00106
    00107		for (j=0; j<4; j++)
    00108	        {
    00109			for (i=0; i<5; i++)
    00110	    		{
    00111				index = FindComponentIndex(FocusedControl);
    00112				//k=index;
    00113				refreshConsp();
    00114				if (bLocalBorder[k]!=0)
    00115				 C.bUseBorder = true;
    00116		 		if (tBackGround[k] != none)
    00117					DrawStretchedTexture(C, (i*77+178)*fRatioX-dSize[k], (j*100+44)*fRatioY*fScaleTo-dSize[k], 63*fRatioX+2*dSize[k], 64*fRatioY*fScaleTo+2*dSize[k], tBackGround[k]);
    00118				 C.bUseBorder = false;
    00119				k++;
    00120			}
    00121			i=0;
    00122		}
    00123
    00124		 // Title
    00125		 C.bUseBorder = true;
    00126		 DrawStretchedTexture(C, -1, 140*fRatioY*fScaleTo, 140*fRatioX, 30*fRatioY*fScaleTo, myRoot.FondMenu);
    00127		 C.TextSize(TitleText, W, H);
    00128		 C.DrawColor = BlackColor;
    00129		 C.SetPos((144*fRatioX-W)/2, (140*fRatioY+(24*fRatioY-H)/2)*fScaleTo); C.DrawText(TitleText, false);
    00130		 C.bUseBorder = false;
    00131		 C.DrawColor = WhiteColor;
    00132
    00133	        super.paint(C,X,Y);
    00134
    00135
    00136	}
    00137
    00138	function AfterPaint(Canvas C, float X, float Y)
    00139	{
    00140	    local float zoom;
    00141
    00142	    Super.AfterPaint(C, X, Y);
    00143
    00144	    C.Style = 1;
    00145
    00146	}
    00147
    00148	//============================================================================
    00149	// Called when a button is clicked
    00150	function bool InternalOnClick(GUIComponent Sender)
    00151	{
    00152	  return true;
    00153	}
    00154
    00155
    00156	//============================================================================
    00157	function bool InternalOnKeyEvent(out byte Key, out byte State, float delta)
    00158	{
    00159	   local int index, i;
    00160	   local bool bLeft, bRight, bUp, bDown;
    00161
    00162		if (State==1)// IST_Press // to avoid auto-repeat
    00163	    {
    00164
    00165	        if ((Key==0x0D/*IK_Enter*/) || (Key==0x01))
    00166		    {
    00167	//            Controller.FocusedControl.OnClick(Self);
    00168	            return InternalOnClick(FocusedControl);//true;
    00169		    }
    00170
    00171		    if ((Key==0x08/*IK_Escape*/) || (Key==0x1B))
    00172		    {
    00173		        myRoot.CloseMenu(true);
    00174	    	      return true;
    00175		    }
    00176
    00177
    00178		    bUp = (Key==0x26);
    00179	        bDown = (Key==0x28);
    00180	        bLeft = (Key==0x25);
    00181	        bRight = (Key==0x27);
    00182
    00183	        // controls are
    00184	        //   0   1
    00185	        //	   4
    00186			//   2   3
    00187		    if ( bUp || bDown || bLeft || bRight )
    00188		    {
    00189		        index = FindComponentIndex(FocusedControl);
    00190	                //log("Focused Control nb"$index);
    00191	                for (i=0; i<20; i++)
    00192	                {
    00193				if (i==index)
    00194				     dSize[i]=10;
    00195				else
    00196				  dSize[i]=0;
    00197			}
    00198	            switch (index)
    00199		        {
    00200		            case 0 :
    00201	                    if ( bRight ) Controls[1].FocusFirst(Self,false);
    00202	                    if ( bDown) Controls[5].FocusFirst(Self,false);
    00203			    if ( bLeft ) Controls[4].FocusFirst(Self,false);
    00204	                    if ( bUp ) Controls[15].FocusFirst(Self,false);
    00205	                break;
    00206		            case 1 :
    00207	                    if ( bDown ) Controls[6].FocusFirst(Self,false);
    00208			    if ( bLeft ) Controls[0].FocusFirst(Self,false);
    00209	                    if ( bRight ) Controls[2].FocusFirst(Self,false);
    00210	                    if ( bUp ) Controls[16].FocusFirst(Self,false);
    00211	                break;
    00212		            case 2 :
    00213	                    if ( bDown) Controls[7].FocusFirst(Self,false);
    00214	                    if ( bLeft ) Controls[1].FocusFirst(Self,false);
    00215			    if ( bRight ) Controls[3].FocusFirst(Self,false);
    00216	                    if ( bUp ) Controls[17].FocusFirst(Self,false);
    00217			break;
    00218		            case 3 :
    00219	                    if ( bDown) Controls[8].FocusFirst(Self,false);
    00220	                    if ( bLeft ) Controls[2].FocusFirst(Self,false);
    00221			    if ( bRight ) Controls[4].FocusFirst(Self,false);
    00222	                    if ( bUp ) Controls[18].FocusFirst(Self,false);
    00223	                break;
    00224		            case 4 :
    00225	                    if ( bUp ) Controls[19].FocusFirst(Self,false);
    00226	                    if ( bLeft ) Controls[3].FocusFirst(Self,false);
    00227			    if ( bRight ) Controls[0].FocusFirst(Self,false);
    00228			    if ( bDown) Controls[9].FocusFirst(Self,false);
    00229	                break;
    00230		            case 5 :
    00231	                    if ( bUp ) Controls[0].FocusFirst(Self,false);
    00232	                    if ( bLeft ) Controls[9].FocusFirst(Self,false);
    00233			    if ( bRight ) Controls[6].FocusFirst(Self,false);
    00234			    if ( bDown) Controls[10].FocusFirst(Self,false);
    00235	                break;
    00236		            case 6 :
    00237	                    if ( bUp ) Controls[1].FocusFirst(Self,false);
    00238	                    if ( bLeft ) Controls[5].FocusFirst(Self,false);
    00239			    if ( bRight ) Controls[7].FocusFirst(Self,false);
    00240			    if ( bDown) Controls[11].FocusFirst(Self,false);
    00241	                break;
    00242		            case 7 :
    00243	                    if ( bUp ) Controls[2].FocusFirst(Self,false);
    00244	                    if ( bLeft ) Controls[6].FocusFirst(Self,false);
    00245
if ( bRight ) Controls[8].FocusFirst(Self,false); 00246 if ( bDown) Controls[12].FocusFirst(Self,false); 00247 break; 00248 case 8 : 00249 if ( bUp ) Controls[3].FocusFirst(Self,false); 00250 if ( bLeft ) Controls[7].FocusFirst(Self,false); 00251 if ( bRight ) Controls[9].FocusFirst(Self,false); 00252 if ( bDown) Controls[13].FocusFirst(Self,false); 00253 break; 00254 case 9 : 00255 if ( bUp ) Controls[4].FocusFirst(Self,false); 00256 if ( bLeft ) Controls[8].FocusFirst(Self,false); 00257 if ( bRight ) Controls[5].FocusFirst(Self,false); 00258 if ( bDown) Controls[14].FocusFirst(Self,false); 00259 break; 00260 case 10 : 00261 if ( bUp ) Controls[5].FocusFirst(Self,false); 00262 if ( bLeft ) Controls[14].FocusFirst(Self,false); 00263 if ( bRight ) Controls[11].FocusFirst(Self,false); 00264 if ( bDown) Controls[15].FocusFirst(Self,false); 00265 break; 00266 case 11 : 00267 if ( bUp ) Controls[6].FocusFirst(Self,false); 00268 if ( bLeft ) Controls[10].FocusFirst(Self,false); 00269 if ( bRight ) Controls[12].FocusFirst(Self,false); 00270 if ( bDown) Controls[16].FocusFirst(Self,false); 00271 break; 00272 case 12 : 00273 if ( bUp ) Controls[7].FocusFirst(Self,false); 00274 if ( bLeft ) Controls[11].FocusFirst(Self,false); 00275 if ( bRight ) Controls[13].FocusFirst(Self,false); 00276 if ( bDown) Controls[17].FocusFirst(Self,false); 00277 break; 00278 case 13 : 00279 if ( bUp ) Controls[8].FocusFirst(Self,false); 00280 if ( bLeft ) Controls[12].FocusFirst(Self,false); 00281 if ( bRight ) Controls[14].FocusFirst(Self,false); 00282 if ( bDown) Controls[18].FocusFirst(Self,false); 00283 break; 00284 case 14 : 00285 if ( bUp ) Controls[9].FocusFirst(Self,false); 00286 if ( bLeft ) Controls[13].FocusFirst(Self,false); 00287 if ( bRight ) Controls[10].FocusFirst(Self,false); 00288 if ( bDown) Controls[19].FocusFirst(Self,false); 00289 break; 00290 case 15 : 00291 if ( bUp ) Controls[10].FocusFirst(Self,false); 00292 if ( bLeft ) Controls[19].FocusFirst(Self,false); 00293 if ( bRight ) Controls[16].FocusFirst(Self,false); 00294 if ( bDown) Controls[0].FocusFirst(Self,false); 00295 break; 00296 case 16 : 00297 if ( bUp ) Controls[11].FocusFirst(Self,false); 00298 if ( bLeft ) Controls[15].FocusFirst(Self,false); 00299 if ( bRight ) Controls[17].FocusFirst(Self,false); 00300 if ( bDown) Controls[1].FocusFirst(Self,false); 00301 break; 00302 case 17 : 00303 if ( bUp ) Controls[12].FocusFirst(Self,false); 00304 if ( bLeft ) Controls[16].FocusFirst(Self,false); 00305 if ( bRight ) Controls[18].FocusFirst(Self,false); 00306 if ( bDown) Controls[2].FocusFirst(Self,false); 00307 break; 00308 case 18 : 00309 if ( bUp ) Controls[13].FocusFirst(Self,false); 00310 if ( bLeft ) Controls[17].FocusFirst(Self,false); 00311 if ( bRight ) Controls[19].FocusFirst(Self,false); 00312 if ( bDown) Controls[3].FocusFirst(Self,false); 00313 break; 00314 case 19 : 00315 if ( bUp ) Controls[14].FocusFirst(Self,false); 00316 if ( bLeft ) Controls[18].FocusFirst(Self,false); 00317 if ( bRight ) Controls[15].FocusFirst(Self,false); 00318 if ( bDown) Controls[4].FocusFirst(Self,false); 00319 break; 00320 } 00321 return true; 00322 } 00323 } 00324 return super.InternalOnKeyEvent(Key, state, delta); 00325 } 00326 00327 function refreshConsp() 00328 { 00329 local int index, i; 00330 index = FindComponentIndex(FocusedControl); 00331 //log("Focused Control nb"$index); 00332 for (i=0; i<20; i++) 00333 { 00334 if (i==index) 00335 { 00336 dSize[i]=10; 00337 bLocalBorder[i]=1; 00338 //return i; 00339 } 00340 else 00341 { 00342 dSize[i]=0; 00343 bLocalBorder[i]=0; 00344 } 00345 } 00346 00347 } 00348 00349 00350 event HandleParameters(string Param1, string Param2) 00351 { 00352 local int i; 00353 // interpret info at page load 00354 // how many maps have we been through 00355 Description = Param1; 00356 log("Param1="$Description); 00357 if (Description=="Brighton Beach 1") 00358 NbMap=0; 00359 if ((Description=="Brighton Beach 2") || (Description=="Brighton Beach 3")) 00360 NbMap=1; 00361 if ((Description=="Winslow Bank") || (Description=="Winslow Bank 2") || (Description=="Winslow Bank 3")) 00362 NbMap=2; 00363 if ((Description=="FBI") || (Description=="FBI 2") || (Description=="FBI 3")) 00364 NbMap=3; 00365 if ((Description=="Major Jones") || (Description=="Major Jones 1") || (Description=="Major Jones 2") || (Description=="Major Jones 3")) 00366 NbMap=4; 00367 if (Description=="Emerald Base bridge") 00368 NbMap=5; 00369 if (Description=="Emerald Base roof") 00370 NbMap=6; 00371 if ((Description=="Carrington's cell") || (Description=="Carrington's cell 1") || (Description=="Carrington's cell 2") || (Description=="Carrington's cell 3")) 00372 NbMap=7; 00373 if (Description=="Cable car station") 00374 NbMap=8; 00375 if ((Description=="Cable car") || (Description=="Cable car 1")) 00376 NbMap=9; 00377 if ((Description=="Kellownee Lake") || (Description=="Kellownee Lake 1")) 00378 NbMap=10; 00379 if ((Description=="Kellownee hideout") || (Description=="Kellownee hideout 1")) 00380 NbMap=11; 00381 if ((Description=="Plain Rock 1") || (Description=="Plain Rock 2") || (Description=="Plain Rock 3") || (Description=="Plain Rock 4")) 00382 NbMap=12; 00383 if ((Description=="Doc Johansson") || (Description=="Doc Johansson 1")) 00384 NbMap=13; 00385 if ((Description=="Canyon 1") || (Description=="Canyon 2") || (Description=="Canyon 3")) 00386 NbMap=14; 00387 if ((Description=="Canyon 4") || (Description=="Canyon 5") || (Description=="Canyon 6")) 00388 NbMap=15; 00389 if (Description=="Sewage") 00390 NbMap=16; 00391 if ((Description=="SPADS camp 1") || (Description=="SPADS camp 2") || (Description=="SPADS camp 3")) 00392 NbMap=17; 00393 if ((Description=="McCall") || (Description=="McCall 1")) 00394 NbMap=18; 00395 if ((Description=="Submarine base") || (Description=="Submarine base 1")) 00396 NbMap=19; 00397 if ((Description=="Submarine 1") || (Description=="Submarine 2")) 00398 NbMap=20; 00399 if ((Description=="Submarine 3") || (Description=="Submarine 4")) 00400 NbMap=21; 00401 if ((Description=="Sabotage") || (Description=="Sabotage 1")) 00402 NbMap=22; 00403 if ((Description=="Quay 33") || (Description=="Quay 33-1")) 00404 NbMap=23; 00405 if ((Description=="Bristol Suites Hotel") || (Description=="Bristol Suites Hotel 1")) 00406 NbMap=24; 00407 if ((Description=="Sanctuary garden") || (Description=="Sanctuary garden 1")) 00408 NbMap=25; 00409 if ((Description=="Sanctuary hall") || (Description=="Sanctuary hall 1")) 00410 NbMap=26; 00411 if ((Description=="Sanctuary crypt") || (Description=="Sanctuary crypt 1")) 00412 NbMap=27; 00413 if ((Description=="Sanctuary cliff") || (Description=="Sanctuary cliff 1")) 00414 NbMap=28; 00415 if ((Description=="SSH1 base admission") || (Description=="SSH1 base admission 1") || (Description=="SSH1 base admission 2")) 00416 NbMap=29; 00417 if ((Description=="SSH1 trap") || (Description=="SSH1 trap 1")) 00418 NbMap=30; 00419 if (Description=="Total Red") 00420 NbMap=31; 00421 if ((Description=="SSH1 final") || (Description=="SSH1 final 1")) 00422 NbMap=32; 00423 if (Description=="Lady Bee") 00424 NbMap=33; 00425 if (Description=="Bove President") 00426 NbMap=0; 00427 //else 00428 //NbMap=0; 00429 log("NbMap = "$NbMap); 00430 00431 for (i=0; i<20; i++) 00432 { 00433 tHighlight[i] = texture(DynamicLoadObject(sHighlight[i], class'Texture')); 00434 tBackGround[i] = texture(DynamicLoadObject(sBackGround[i], class'Texture')); 00435 } 00436 00437 00438 // depending on how many maps finished 00439 // replaced cards with mugshots 00440 00441 // we have xiii at the begining 00442 if (NbMap >= 0) 00443 { 00444 tmpJobs[12]=ConspJobs[12]; 00445 tBackGround[12] = texture(DynamicLoadObject(sHighlight[12], class'Texture')); 00446 } 00447 // met nb 17 in map 11 00448 if (NbMap >= 12) 00449 { 00450 tmpJobs[16]=ConspJobs[16]; 00451 tBackGround[16] = texture(DynamicLoadObject(sHighlight[16], class'Texture')); 00452 } 00453 // met nb 20 in map 13 00454 if (NbMap >= 14) 00455 { 00456 tmpJobs[19]=ConspJobs[19]; 00457 tBackGround[19] = texture(DynamicLoadObject(sHighlight[19], class'Texture')); 00458 } 00459 // met nb 11 in map 18 00460 if (NbMap >= 19) 00461 { 00462 tmpJobs[10]=ConspJobs[10]; 00463 tBackGround[10] = texture(DynamicLoadObject(sHighlight[10], class'Texture')); 00464 } 00465 // met nb 7 in map 21 00466 if (NbMap >= 22) 00467 { 00468 tmpJobs[6]=ConspJobs[6]; 00469 tBackGround[6] = texture(DynamicLoadObject(sHighlight[6], class'Texture')); 00470 } 00471 00472 // met nb 5 and 9 in map 24 00473 if (NbMap >= 25){ 00474 tmpJobs[4]=ConspJobs[4]; 00475 tmpJobs[8]=ConspJobs[8]; 00476 tBackGround[4] = texture(DynamicLoadObject(sHighlight[4], class'Texture')); 00477 tBackGround[8] = texture(DynamicLoadObject(sHighlight[8], class'Texture')); 00478 } 00479 00480 // met nb 12 14 15 16 18 19 in map 27 00481 if (NbMap >= 28){ 00482 tmpJobs[11]=ConspJobs[11]; 00483 tmpJobs[13]=ConspJobs[13]; 00484 tmpJobs[14]=ConspJobs[14]; 00485 tmpJobs[15]=ConspJobs[15]; 00486 tmpJobs[17]=ConspJobs[17]; 00487 tmpJobs[18]=ConspJobs[18]; 00488 tBackGround[11] = texture(DynamicLoadObject(sHighlight[11], class'Texture')); 00489 tBackGround[13] = texture(DynamicLoadObject(sHighlight[13], class'Texture')); 00490 tBackGround[14] = texture(DynamicLoadObject(sHighlight[14], class'Texture')); 00491 tBackGround[15] = texture(DynamicLoadObject(sHighlight[15], class'Texture')); 00492 tBackGround[17] = texture(DynamicLoadObject(sHighlight[17], class'Texture')); 00493 tBackGround[18] = texture(DynamicLoadObject(sHighlight[18], class'Texture')); 00494 } 00495 00496 // met nb 4 6 8 10 in map 28 00497 if (NbMap >= 29){ 00498 tmpJobs[3]=ConspJobs[3]; 00499 tmpJobs[5]=ConspJobs[5]; 00500 tmpJobs[7]=ConspJobs[7]; 00501 tmpJobs[9]=ConspJobs[9]; 00502 tBackGround[3] = texture(DynamicLoadObject(sHighlight[3], class'Texture')); 00503 tBackGround[5] = texture(DynamicLoadObject(sHighlight[5], class'Texture')); 00504 tBackGround[7] = texture(DynamicLoadObject(sHighlight[7], class'Texture')); 00505 tBackGround[9] = texture(DynamicLoadObject(sHighlight[9], class'Texture')); 00506 } 00507 00508 00509 00510 // met nb 3 in map 30 00511 if (NbMap >= 31) 00512 { 00513 tmpJobs[2]=ConspJobs[2]; 00514 tBackGround[2] = texture(DynamicLoadObject(sHighlight[2], class'Texture')); 00515 } 00516 00517 // met nb 2 in map 31 00518 if (NbMap >= 32) 00519 { 00520 tmpJobs[1]=ConspJobs[1]; 00521 tBackGround[1] = texture(DynamicLoadObject(sHighlight[1], class'Texture')); 00522 } 00523 // met nb 1 in map 33 00524 // exceptionnaly we give nb 1 as soon as we open the map 00525 if (NbMap >= 33) 00526 { 00527 tmpJobs[0]=tmpJobs[0];//ConspJobs[0]; 00528 tBackGround[0] = texture(DynamicLoadObject(sHighlight[0], class'Texture')); 00529 } 00530 00531 Controller.FocusedControl.LoseFocus(None); 00532 Controller.FocusedControl = Controls[0]; 00533 00534 for (i=0; i<20; i++) 00535 { 00536 if (i==0) 00537 dSize[i]=10; 00538 else 00539 dSize[i]=0; 00540 } 00541 00542 } 00543 00544 00545 00546 //============================================================================ 00547 00548 00549 defaultproperties 00550 { 00551 TitleText="Conspiracy" 00552 Doc1Text="Document1" 00553 Doc2Text="Document2" 00554 Doc3Text="Document3" 00555 Doc4Text="Document4" 00556 Doc5Text="Document5" 00557 Doc6Text="Document6" 00558 Doc7Text="Document7" 00559 Doc8Text="Document8" 00560 ConspJobs(0)="Walter Sheridan - Sénateur" 00561 ConspJobs(1)="Calvin Wax - conseiller spécial du président" 00562 ConspJobs(2)="William Standwell - Général" 00563 ConspJobs(3)="Philip Gillepsie - Juge" 00564 ConspJobs(4)="Clayton Willard - Sénateur" 00565 ConspJobs(5)="Irving Allenby - Juge" 00566 ConspJobs(6)="Franklin Edelbright - Général" 00567 ConspJobs(7)="Dean Harrison - Député" 00568 ConspJobs(8)="Jasper Winslow - Banquier" 00569 ConspJobs(9)="Orville Midsummer - Press" 00570 ConspJobs(10)="Seymour Mac Call - Colonel" 00571 ConspJobs(11)="Lloyd Jennings - Conseiller à la Maison Blanche" 00572 ConspJobs(12)="Steve Rowland - Capitaine" 00573 ConspJobs(13)="Harriet Traymore - Federal Steel Corporation - PDG" 00574 ConspJobs(14)="Jack Dickinson - American Legion - PDG" 00575 ConspJobs(15)="Norman Ryder - Garde Nationale" 00576 ConspJobs(16)="Kim Rowland - Veuve de Steve Rowland" 00577 ConspJobs(17)="Edwin Rauschenberg - chaîne CBN - PDG" 00578 ConspJobs(18)="Elly Sheperd - Ministère de la Défense - DG" 00579 ConspJobs(19)="Edward W.Johansson - Plain Rock Asylum - Director" 00580 tmpjobs(0)="?" 00581 tmpjobs(1)="?" 00582 tmpjobs(2)="?" 00583 tmpjobs(3)="?" 00584 tmpjobs(4)="?" 00585 tmpjobs(5)="?" 00586 tmpjobs(6)="?" 00587 tmpjobs(7)="?" 00588 tmpjobs(8)="?" 00589 tmpjobs(9)="?" 00590 tmpjobs(10)="?" 00591 tmpjobs(11)="?" 00592 tmpjobs(12)="?" 00593 tmpjobs(13)="?" 00594 tmpjobs(14)="?" 00595 tmpjobs(15)="?" 00596 tmpjobs(16)="?" 00597 tmpjobs(17)="?" 00598 tmpjobs(18)="?" 00599 tmpjobs(19)="?" 00600 sBackground(0)="XIIIMenuStart.conspi.xtetegrise" 00601 sBackground(1)="XIIIMenuStart.conspi.xtetegrise" 00602 sBackground(2)="XIIIMenuStart.conspi.xtetegrise" 00603 sBackground(3)="XIIIMenuStart.conspi.xtetegrise" 00604 sBackground(4)="XIIIMenuStart.conspi.xtetegrise" 00605 sBackground(5)="XIIIMenuStart.conspi.xtetegrise" 00606 sBackground(6)="XIIIMenuStart.conspi.xtetegrise" 00607 sBackground(7)="XIIIMenuStart.conspi.xtetegrise" 00608 sBackground(8)="XIIIMenuStart.conspi.xtetegrise" 00609 sBackground(9)="XIIIMenuStart.conspi.xtetegrise" 00610 sBackground(10)="XIIIMenuStart.conspi.xtetegrise" 00611 sBackground(11)="XIIIMenuStart.conspi.xtetegrise" 00612 sBackground(12)="XIIIMenuStart.conspi.xtetegrise" 00613 sBackground(13)="XIIIMenuStart.conspi.xtetegrise" 00614 sBackground(14)="XIIIMenuStart.conspi.xtetegrise" 00615 sBackground(15)="XIIIMenuStart.conspi.xtetegrise" 00616 sBackground(16)="XIIIMenuStart.conspi.xtetegrise" 00617 sBackground(17)="XIIIMenuStart.conspi.xtetegrise" 00618 sBackground(18)="XIIIMenuStart.conspi.xtetegrise" 00619 sBackground(19)="XIIIMenuStart.conspi.xtetegrise" 00620 sHighlight(0)="XIIIMenuStart.conspi.xteteIfloue" 00621 sHighlight(1)="XIIIMenuStart.conspi.xteteII" 00622 sHighlight(2)="XIIIMenuStart.conspi.xteteIII" 00623 sHighlight(3)="XIIIMenuStart.conspi.xteteIV" 00624 sHighlight(4)="XIIIMenuStart.conspi.xteteV" 00625 sHighlight(5)="XIIIMenuStart.conspi.xteteVI" 00626 sHighlight(6)="XIIIMenuStart.conspi.xteteVII" 00627 sHighlight(7)="XIIIMenuStart.conspi.xteteVIII" 00628 sHighlight(8)="XIIIMenuStart.conspi.xteteIX" 00629 sHighlight(9)="XIIIMenuStart.conspi.xteteX" 00630 sHighlight(10)="XIIIMenuStart.conspi.xteteXI" 00631 sHighlight(11)="XIIIMenuStart.conspi.xteteXII" 00632 sHighlight(12)="XIIIMenuStart.conspi.xteteXIII" 00633 sHighlight(13)="XIIIMenuStart.conspi.xteteXIV" 00634 sHighlight(14)="XIIIMenuStart.conspi.xteteXV" 00635 sHighlight(15)="XIIIMenuStart.conspi.xteteXVI" 00636 sHighlight(16)="XIIIMenuStart.conspi.teteXVII" 00637 sHighlight(17)="XIIIMenuStart.conspi.xteteXVIII" 00638 sHighlight(18)="XIIIMenuStart.conspi.xteteXIX" 00639 sHighlight(19)="XIIIMenuStart.conspi.xteteXX" 00640 sBackPlane(0)="XIIIMenuStart.conspi.galerieportraits1" 00641 sBackPlane(1)="XIIIMenuStart.conspi.galerieportraits2" 00642 sBackPlane(2)="XIIIMenuStart.conspi.galerieportraits3" 00643 sBackPlane(3)="XIIIMenuStart.conspi.galerieportraits4" 00644 }

End Source Code