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 |
//============================================================================== // Used on the details page to display addition team deletails // HandleParams request the teams name as 1st param // // Written by Michiel Hendriks // (c) 2003, 2004, Epic Games, Inc. All Rights Reserved //============================================================================== class UT2K4SP_DetailsTeam extends LargeWindow; var automated GUIImage imgPicture; var automated GUIButton btnOk; var automated GUILabel lblTitle; var automated GUIScrollTextBox cbDescription; /** Param1 is the fully qualified name for the team */ event HandleParameters(string Param1, string Param2) { local class<UT2K4TeamRoster> ETI; Super.HandleParameters(Param1, Param2); ETI = class<UT2K4TeamRoster>(DynamicLoadObject(Param1, class'Class')); if (ETI == none) { Warn(Param1@"is not a valid subclass of UT2K4TeamRoster"); return; } lblTitle.Caption = ETI.default.TeamName; if (ETI.default.TeamSymbolName != "") imgPicture.Image = Material(DynamicLoadObject(ETI.default.TeamSymbolName, class'Material', true)); cbDescription.SetContent(ETI.default.TeamDescription); if (ETI.default.VoiceOver != none) PlayerOwner().PlayOwnedSound(ETI.default.VoiceOver, SLOT_Interface, 1.0); else if (ETI.default.TeamNameSound != none) PlayerOwner().PlayOwnedSound(ETI.default.TeamNameSound, SLOT_Interface, 1.0); } function bool btnOkOnClick(GUIComponent Sender) { Controller.CloseMenu(false); return true; } defaultproperties { Begin Object Class=GUIImage Name=SPDTimgPicture ImageStyle=ISTY_Justified ImageAlign=IMGA_Center WinTop=0.162500 WinLeft=0.031250 WinWidth=0.225000 WinHeight=0.412500 RenderWeight=0.300000 bBoundToParent=True End Object imgPicture=GUIImage'GUI2K4.UT2K4SP_DetailsTeam.SPDTimgPicture' Begin Object Class=GUIButton Name=SPDTbtnOk Caption="CLOSE" FontScale=FNS_Small WinTop=0.865625 WinLeft=0.337813 WinWidth=0.200000 bBoundToParent=True OnClick=UT2K4SP_DetailsTeam.btnOkOnClick OnKeyEvent=SPDTbtnOk.InternalOnKeyEvent End Object btnOK=GUIButton'GUI2K4.UT2K4SP_DetailsTeam.SPDTbtnOk' Begin Object Class=GUILabel Name=SPDTlblTitle TextAlign=TXTA_Center FontScale=FNS_Large StyleName="TextLabel" WinTop=0.068333 WinLeft=0.027500 WinWidth=0.567500 WinHeight=0.053750 bBoundToParent=True End Object lblTitle=GUILabel'GUI2K4.UT2K4SP_DetailsTeam.SPDTlblTitle' Begin Object Class=GUIScrollTextBox Name=SPDTcbDescription bNoTeletype=True OnCreateComponent=SPDTcbDescription.InternalOnCreateComponent WinTop=0.166667 WinLeft=0.425000 WinWidth=0.324999 WinHeight=0.412500 bBoundToParent=True End Object cbDescription=GUIScrollTextBox'GUI2K4.UT2K4SP_DetailsTeam.SPDTcbDescription' DefaultLeft=0.080000 DefaultTop=0.193333 DefaultWidth=0.827500 DefaultHeight=0.598749 WinTop=0.193333 WinLeft=0.080000 WinWidth=0.827500 WinHeight=0.598749 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |