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 |
/** * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class UTDuelQueueScoreboardPanel extends UTScoreboardPanel; function GetPRIList(UTGameReplicationInfo GRI) { local int i; local UTDuelPRI PRI; if (GRI != None) { for (i=0; i < GRI.PRIArray.Length; i++) { PRI = UTDuelPRI(GRI.PRIArray[i]); if (PRI != None && PRI.QueuePosition >= 0) { PRIList[PRI.QueuePosition] = PRI; } } } } /** * Tests a PRI to see if we should display it on the scoreboard * * @Param PRI The PRI to test * @returns TRUE if we should display it, returns FALSE if we shouldn't */ function bool IsValidScoreboardPlayer( UTPlayerReplicationInfo PRI) { return Super.IsValidScoreboardPlayer(PRI) && UTDuelPRI(PRI).QueuePosition >= 0; } function DrawScoreHeader() { if ( HeaderFont != none ) { Canvas.Font = HeaderFont; Canvas.SetDrawColor(255,255,255,255); Canvas.SetPos(Canvas.ClipX * HeaderXPct,Canvas.ClipY * HeaderYPos); Canvas.DrawTextClipped(HeaderTitle_Name); } } function float DrawScore(UTPlayerReplicationInfo PRI, float YPos, int FontIndex, float FontScale) { return Canvas.ClipX; } defaultproperties { bMustDrawLocalPRI=False Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'UTGame.Default__UTScoreboardPanel:WidgetEventComponent' ObjectArchetype=UIComp_Event'UTGame.Default__UTScoreboardPanel:WidgetEventComponent' End Object EventProvider=WidgetEventComponent Name="Default__UTDuelQueueScoreboardPanel" ObjectArchetype=UTScoreboardPanel'UTGame.Default__UTScoreboardPanel' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |