XIDInterf
Class XIIIMultiViewConfigWindow

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

class XIIIMultiViewConfigWindow
extends XIDInterf.XIIIWindow



Function Summary
 bool InternalOnKeyEvent(out byte, out byte, float delta)
 void Paint(Canvas C, float X, float Y)
 void PaintControls(Canvas C, float X, float Y)
     
//_____________________________________________________________________________
 void ShowWindow()
     
//_____________________________________________________________________________



Source Code


00001	class XIIIMultiViewConfigWindow extends XIIIWindow;
00002	
00003	//var XIIIMultiControlsWindow PWin;
00004	
00005	//_____________________________________________________________________________
00006	function ShowWindow()
00007	{
00008	    //PWin = XIIIMultiControlsWindow(ParentPage);
00009	    Super.ShowWindow();
00010	    bShowBCK = true;
00011	}
00012	
00013	
00014	function Paint(Canvas C, float X, float Y)
00015	{
00016	    super.Paint(C, X, Y);
00017	    PaintControls(C, 20*fRatioX, 60*fRatioY);
00018	}
00019	
00020	
00021	//_____________________________________________________________________________
00022	function PaintControls(Canvas C, float X, float Y)
00023	{
00024	    local int i;
00025	
00026	    C.SetPos(X, Y);
00027	    C.DrawColor = BlackColor;
00028	
00029	/*    for (i=0; i<8; i++)
00030	    {
00031	      C.SetPos(X, Y + i*12);
00032	      if (myRoot.CurrentPF < 2) // PC & PS2
00033	        C.DrawText(PWin.sButtonsP[i]@"="@PWin.Buttons[i]);
00034	      else if ( MyRoot.CurrentPF == 2 ) //XBOX
00035	        C.DrawText(PWin.sButtonsX[i]@"="@PWin.Buttons[i]);
00036	      else if ( MyRoot.CurrentPF == 3 ) // GC
00037	        C.DrawText(PWin.sButtonsG[i]@"="@PWin.Buttons[i]);
00038	    }
00039	    for (i=8; i<16; i++)
00040	    {
00041	      C.SetPos(X + 280*fRatioX, Y + (i-8)*12);
00042	      if (myRoot.CurrentPF < 2) // PC & PS2
00043	        C.DrawText(PWin.sButtonsP[i]@"="@PWin.Buttons[i]);
00044	      else if ( MyRoot.CurrentPF == 2 ) //XBOX
00045	        C.DrawText(PWin.sButtonsX[i]@"="@PWin.Buttons[i]);
00046	      else if ( MyRoot.CurrentPF == 3 ) // GC
00047	        C.DrawText(PWin.sButtonsG[i]@"="@PWin.Buttons[i]);
00048	    }
00049	    for (i=16; i<18; i++)
00050	    {
00051	      C.SetPos(X , Y + (i-7)*12);
00052	      if (myRoot.CurrentPF < 2) // PC & PS2
00053	        C.DrawText(PWin.sButtonsP[i]@"="@PWin.Buttons[i]);
00054	      else if ( MyRoot.CurrentPF == 2 ) //XBOX
00055	        C.DrawText(PWin.sButtonsX[i]@"="@PWin.Buttons[i]);
00056	      else if ( MyRoot.CurrentPF == 3 ) // GC
00057	        C.DrawText(PWin.sButtonsG[i]@"="@PWin.Buttons[i]);
00058	    }*/
00059	    C.DrawColor = WhiteColor;
00060	}
00061	
00062	function bool InternalOnKeyEvent(out byte Key, out byte State, float delta)
00063	{
00064	    local int i;
00065	
00066	    if (State==1) // IST_Press // to avoid auto-repeat
00067	    {
00068	        if (Key==0x08/*IK_Backspace*/)
00069		    {
00070	            myRoot.CloseMenu(true);
00071	            return true;
00072		    }
00073		}
00074	    return super.InternalOnKeyEvent(Key, state, delta);
00075	}
00076	
00077	
00078	
00079	
00080	defaultproperties
00081	{
00082	     bForceHelp=True
00083	}

End Source Code