Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 |
//----------------------------------------------------------- // //----------------------------------------------------------- class ROUT2K4Tab_BotConfigMP extends UT2K4Tab_BotConfigMP; function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.Initcomponent(MyController, MyOwner); } function bool InternalOnClick(GUIComponent Sender) { if (Sender==b_Left) { li_Bots.SetFocus(none); li_Bots.PgUp(); return true; } if (Sender==b_Right) { li_Bots.SetFocus(none); li_Bots.PgDown(); return true; } if (Sender == b_AddR) { bIgnoreListChange = True; li_Red.Add( li_Bots.GetPortrait(), li_Bots.Index ); return true; } if (Sender == b_AddB) { bIgnoreListChange = True; li_Blue.Add( li_Bots.GetPortrait(), li_Bots.Index ); return true; } if (Sender == b_RemoveR) { li_Red.Remove(li_Red.Index); return true; } if (Sender == b_RemoveB) { li_Blue.Remove(li_Blue.Index); return true; } if (Sender == b_Config) { if (Controller.OpenMenu("ROInterface.ROUT2K4BotInfoPage")) UT2K4BotInfoPage(Controller.ActivePage).SetupBotInfo(li_bots.GetPortrait(), li_Bots.GetDecoText(), li_Bots.GetRecord()); return true; } if (Sender == b_DoConfig) { // if (Controller.OpenMenu("GUI2K4.UT2K4BotConfigPage")) if (Controller.OpenMenu("ROInterface.ROUT2K4BotConfigPage")) UT2K4BotConfigPage(Controller.ActivePage).SetupBotInfo(li_Bots.GetPortrait(), li_Bots.GetDecoText(), li_Bots.GetRecord()); return true; } return false; } defaultproperties { Begin Object Class=GUISectionBackground Name=BotConfigMainBG Caption="Drag a character on to its respective team" WinTop=0.650734 WinLeft=0.058516 WinWidth=0.887501 WinHeight=0.328047 OnPreDraw=BotConfigMainBG.InternalPreDraw End Object sb_Bots=GUISectionBackground'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigMainBG' Begin Object Class=GUISectionBackground Name=BotConfigRedBackground Caption="Red Team" WinTop=0.008334 WinLeft=0.011758 WinWidth=0.358731 WinHeight=0.576876 OnPreDraw=BotConfigRedBackground.InternalPreDraw End Object sb_Red=GUISectionBackground'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigRedBackground' Begin Object Class=GUISectionBackground Name=BotConfigBlueBackground Caption="Axis Team" WinTop=0.008334 WinLeft=0.629743 WinWidth=0.358731 WinHeight=0.576876 OnPreDraw=BotConfigBlueBackground.InternalPreDraw End Object sb_Blue=GUISectionBackground'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigBlueBackground' Begin Object Class=AltSectionBackground Name=BotConfigPortraitBackground FontScale=FNS_Small WinTop=0.037820 WinLeft=0.392777 WinWidth=0.220218 WinHeight=0.512104 OnPreDraw=BotConfigPortraitBackground.InternalPreDraw End Object sb_PBK=AltSectionBackground'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigPortraitBackground' Begin Object Class=GUICharacterList Name=BotConfigCharList StyleName="CharButton" Hint="To add a bot, drag the portrait to the desired team's list, or use the arrow buttons above" WinTop=0.714826 WinLeft=0.139140 WinWidth=0.724609 WinHeight=0.236758 TabOrder=7 bDropSource=True bDropTarget=True OnClick=BotConfigCharList.InternalOnClick OnRightClick=BotConfigCharList.InternalOnRightClick OnMousePressed=BotConfigCharList.InternalOnMousePressed OnMouseRelease=BotConfigCharList.InternalOnMouseRelease OnChange=UT2K4Tab_BotConfigBase.CharListChange OnKeyEvent=BotConfigCharList.InternalOnKeyEvent OnBeginDrag=UT2K4Tab_BotConfigBase.InternalOnBeginDrag OnEndDrag=BotConfigCharList.InternalOnEndDrag OnDragDrop=BotConfigCharList.InternalOnDragDrop OnDragEnter=BotConfigCharList.InternalOnDragEnter OnDragLeave=BotConfigCharList.InternalOnDragLeave OnDragOver=BotConfigCharList.InternalOnDragOver End Object li_Bots=GUICharacterList'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigCharList' Begin Object Class=GUIImage Name=BotConfigPortrait DropShadow=Texture'InterfaceArt_tex.Menu.changeme_texture' ImageStyle=ISTY_Scaled ImageRenderStyle=MSTY_Normal DropShadowY=6 WinTop=0.003986 WinLeft=0.400000 WinWidth=0.200000 WinHeight=0.573754 RenderWeight=1.101000 End Object i_Portrait=GUIImage'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigPortrait' Begin Object Class=GUIVertImageListBox Name=BotConfigRedList ImageScale=0.200000 bVisibleWhenEmpty=True bSorted=True OnCreateComponent=BotConfigRedList.InternalOnCreateComponent Hint="These are the bots that will play on the red team" WinTop=0.060750 WinLeft=0.014258 WinWidth=0.345352 WinHeight=0.504883 TabOrder=0 OnChange=UT2K4Tab_BotConfigBase.ListChange End Object lb_Red=GUIVertImageListBox'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigRedList' Begin Object Class=GUIVertImageListBox Name=BotConfigBlueList ImageScale=0.200000 bVisibleWhenEmpty=True bSorted=True OnCreateComponent=BotConfigBlueList.InternalOnCreateComponent Hint="These are the bots that will play on the blue team" WinTop=0.060750 WinLeft=0.634728 WinWidth=0.345352 WinHeight=0.504883 TabOrder=5 OnChange=UT2K4Tab_BotConfigBase.ListChange End Object lb_Blue=GUIVertImageListBox'ROInterface.ROUT2K4Tab_BotConfigMP.BotConfigBlueList' Begin Object Class=GUIButton Name=IABotConfigConfig Caption="Info" Hint="View detailed stats for this bot." WinTop=0.593949 WinLeft=0.357306 WinWidth=0.136563 WinHeight=0.049765 TabOrder=9 OnClick=ROUT2K4Tab_BotConfigMP.InternalOnClick OnKeyEvent=IABotConfigConfig.InternalOnKeyEvent End Object b_Config=GUIButton'ROInterface.ROUT2K4Tab_BotConfigMP.IABotConfigConfig' Begin Object Class=GUIButton Name=BotLeft StyleName="ArrowLeft" WinTop=0.790963 WinLeft=0.101953 WinWidth=0.043555 WinHeight=0.084414 TabOrder=6 bNeverFocus=True bRepeatClick=True OnClick=UT2K4Tab_BotConfigBase.InternalOnClick OnKeyEvent=BotLeft.InternalOnKeyEvent End Object b_Left=GUIButton'ROInterface.ROUT2K4Tab_BotConfigMP.BotLeft' Begin Object Class=GUIButton Name=BotRight StyleName="ArrowRight" WinTop=0.790963 WinLeft=0.854649 WinWidth=0.043555 WinHeight=0.084414 TabOrder=8 bNeverFocus=True bRepeatClick=True OnClick=UT2K4Tab_BotConfigBase.InternalOnClick OnKeyEvent=BotRight.InternalOnKeyEvent End Object b_Right=GUIButton'ROInterface.ROUT2K4Tab_BotConfigMP.BotRight' Begin Object Class=GUIButton Name=IABotConfigDoConfig Caption="Edit" Hint="Customize the AI attributes for this bot" WinTop=0.593949 WinLeft=0.505743 WinWidth=0.136563 WinHeight=0.049765 TabOrder=10 OnClick=ROUT2K4Tab_BotConfigMP.InternalOnClick OnKeyEvent=IABotConfigDoConfig.InternalOnKeyEvent End Object b_DoConfig=GUIButton'ROInterface.ROUT2K4Tab_BotConfigMP.IABotConfigDoConfig' RedCaption="Allies Team" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |