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 |
//============================================================================== // 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=GUIButton Name=SPDTbtnOk Caption="CLOSE" WinWidth=0.200000 WinHeight=0.040000 WinLeft=0.337813 WinTop=0.865625 OnClick=btnOkOnClick FontScale=FNS_Small bBoundToParent=true End Object btnOk=SPDTbtnOk Begin Object class=GUIImage name=SPDTimgPicture WinWidth=0.225000 WinHeight=0.412500 WinLeft=0.031250 WinTop=0.162500 ImageColor=(R=255,G=255,B=255,A=255); ImageRenderStyle=MSTY_Alpha ImageAlign=IMGA_Center ImageStyle=ISTY_Justified RenderWeight=0.3 bBoundToParent=true End Object imgPicture=SPDTimgPicture Begin Object Class=GUILabel Name=SPDTlblTitle WinWidth=0.567500 WinHeight=0.053750 WinLeft=0.027500 WinTop=0.068333 StyleName="TextLabel" FontScale=FNS_Large TextAlign=TXTA_Center RenderWeight=0.4 bBoundToParent=true End Object lblTitle=SPDTlblTitle Begin Object Class=GUIScrollTextBox Name=SPDTcbDescription WinWidth=0.324999 WinHeight=0.412500 WinLeft=0.425000 WinTop=0.166667 bNoTeletype=true FontScale=FNS_Medium bBoundToParent=true End Object cbDescription=SPDTcbDescription DefaultLeft=0.080000 DefaultTop=0.193333 DefaultWidth=0.827500 DefaultHeight=0.598749 WinLeft=0.080000 WinTop=0.193333 WinWidth=0.827500 WinHeight=0.598749 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |