XIDInterf
Class XIIIMenuLiveDownload

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

class XIIIMenuLiveDownload
extends XIDInterf.XIIILiveWindow


Variables
 string TitleText


Function Summary
 void Created()
 void InitComponent(GUIController MyController, GUIComponent MyOwner)
 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()



Source Code


00001	class XIIIMenuLiveDownload extends XIIILiveWindow;
00002	
00003	var localized string TitleText;
00004	
00005	function Created()
00006	{
00007	  local int i;
00008	  Super.Created();
00009	}
00010	
00011	
00012	function InitComponent(GUIController MyController,GUIComponent MyOwner)
00013	{
00014	  Super.InitComponent(MyController, MyOwner);
00015		OnClick = InternalOnClick;
00016	}
00017	
00018	
00019	function ShowWindow()
00020	{
00021	     OnMenu = 0; myRoot.bFired = false;
00022	     Super.ShowWindow();
00023	     bShowBCK = true;
00024	     bShowRUN = false;
00025	     bShowSEL = false;
00026	}
00027	
00028	
00029	function Paint(Canvas C, float X, float Y)
00030	{
00031	  Super.Paint(C, X, Y);
00032	  PaintStandardBackground(C, X, Y, TitleText);
00033	}
00034	
00035	
00036	// Called when a button is clicked
00037	function bool InternalOnClick(GUIComponent Sender)
00038	{
00039	  /*
00040	    local int i;
00041	    if (Sender == Controls[0])
00042	    {
00043	      Controller.OpenMenu("XIDInterf.XIIIMenuLiveJoinStartWindow");
00044	    }
00045	    return true;
00046	    */
00047	    return true;
00048	}
00049	
00050	
00051	function bool InternalOnKeyEvent(out byte Key, out byte State, float delta)
00052	{
00053	    if (state==1/* || state==2*/)// IST_Press // to avoid auto-repeat
00054	    {
00055	        if ((Key==0x0D/*IK_Enter*/) || (Key==0x01))
00056		    {
00057	          //Controller.FocusedControl.OnClick(Self);
00058	          InternalOnClick(Controller.FocusedControl);
00059	          return true;
00060		    }
00061		    if ((Key==0x08/*IK_Backspace*/)|| (Key==0x1B))
00062		    {
00063		        myRoot.CloseMenu(true);
00064	    	    return true;
00065		    }
00066		    if (Key==0x25/*IK_Left*/)
00067		    {
00068	    	    return true;
00069		    }
00070		    if (Key==0x27/*IK_Right*/)
00071		    {
00072	    	    return true;
00073		    }
00074	    }
00075	    return super.InternalOnKeyEvent(Key, state, delta);
00076	}
00077	
00078	
00079	

End Source Code