Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTGame.UTScoreboardPanel

Extends
UTDrawPanel
Modifiers
config ( Game )

Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

Core.Object
|   
+-- Engine.UIRoot
   |   
   +-- Engine.UIScreenObject
      |   
      +-- Engine.UIObject
         |   
         +-- UTGame.UTUI_Widget
            |   
            +-- UTGame.UTDrawPanel
               |   
               +-- UTGame.UTScoreboardPanel

Direct Known Subclasses:

UTDuelQueueScoreboardPanel, UTTDMScoreboardPanel

Variables Summary
colorAllyColor
boolbCensor
boolbIsSplitScreen
boolbMustDrawLocalPRI
stringFakeNames[32]
stringHeaderTitle_Deaths
stringHeaderTitle_Name
stringHeaderTitle_Score
floatLastCellHeight
floatLeftColumnPosX
floatLeftColumnWidth
intNameCnt
stringPingString
UTPlayerControllerPlayerOwner
array<UTPlayerReplicationInfo>PRIList
intPRIListSize
floatRightColumnPosX
floatRightColumnWidth
intSelectedPI
intSelectedUIIndex
floatSplitScreenHeaderAdjustmentY
floatSplitScreenScorePosAdjustmentY
colorTeamColors[2]
UTUIScene_HudUTHudSceneOwner
UIRoot.TextureCoordinatesWeaponCoords[10]
Test
boolbShowTextBounds
intEditorTestNoPlayers
UTScoreboardPanel
intAssociatedTeamIndex
TextureCoordinatesBackgroundCoords
Texture2DBackgroundTex
floatBarPerc
boolbDrawPlayerNum
boolbInteractive
TextureCoordinatesBlingCoords
TextureCoordinatesBlingPct
Texture2DBlingTex
floatClanMultiplier
floatClanPosAdjust
floatClanTagPerc
SBFontDataFonts[4]
floatFragsXPct
fontHeaderFont
floatHeaderXPct
floatHeaderYPos
TextureCoordinatesHeroCoords
Texture2DHeroTexture
floatHighlightPad
stringLeftMiscStr
floatMainPerc
floatMinFontScale
floatMiscMultiplier
floatMiscPerc
floatMiscPosAdjust
floatPlayerNamePad
stringRightMiscStr
fontScoreFont
vector2DScorePosition
Texture2DSelBarTex
floatSpacerPerc
floatTextLeftPadPct
floatTextPctHeight
floatTextPctWidth
floatTextTopPadPct
Inherited Variables from UTGame.UTDrawPanel
bUseFullViewport, Canvas, pHeight, pLeft, pTop, pWidth, ResolutionScale
Inherited Variables from UTGame.UTUI_Widget
bRequiresTick, UTSceneOwner

Enumerations Summary
EFontType
EFT_Tiny, EFT_Small, EFT_Med, EFT_Large,

Structures Summary
SBFontData
Font, CharHeight

Delegates Summary
delegate OnSelectionChange (UTScoreboardPanel TargetScoreboard, UTPlayerReplicationInfo PRI)
Inherited Delegates from UTGame.UTDrawPanel
DrawDelegate

Functions Summary
functionfloat AutoFit (UTGameReplicationInfo GRI, out int FontIndex, ut int ClanTagFontIndex, out int MiscFontIndex, out float FontScale, bool bPrimeList))
function ChangeSelection (int Ofst))
function CheckSelectedPRI ()))
functionint DisableScoreboard ()))
function DrawClanTag (UTPlayerReplicationInfo PRI, float X, out float YPos, int FontIndex, float FontScale))
function DrawDaggers (UTBetrayalPRI PRI, float PosX, float PosY))
function DrawHighlight (UTPlayerReplicationInfo PRI, float YPos, float CellHeight, float FontScale))
function DrawMisc (UTPlayerReplicationInfo PRI, float NameOfst, out float YPos, int FontIndex, float FontScale))
event DrawPanel ()))
function DrawPlayerName (UTPlayerReplicationInfo PRI, float NameOfst, float NameClipX, out float YPos, int FontIndex, float FontScale, bool bIncludeClan))
function DrawPlayerNum (UTPlayerReplicationInfo PRI, nt PIndex, out float YPos, float FontIndex, float FontScale))
function DrawPRI (int PIndex, UTPlayerReplicationInfo PRI, float CellHeight, int FontIndex, int ClanTagFontIndex, int MiscFontIndex, float FontScale, out float YPos))
functionfloat DrawScore (UTPlayerReplicationInfo PRI, float YPos, int FontIndex, float FontScale))
function DrawScoreHeader ()))
functionfloat DrawString (String Text, float XPos, float YPos, int FontIdx, float FontScale))
function DrawTeamScore ()
function EnableScoreboard (optional int NewUIIndex = -1))
functionbool FindSelfInScoreboard (out int GUIIndex))
functionstring GetClanTagStr (UTPlayerReplicationInfo PRI))
functionLinearColor GetHeaderColor ()))
functionstring GetLeftMisc (UTPlayerReplicationInfo PRI))
functionVector GetMousePosition ()))
functionstring GetPlayerDeaths (UTPlayerReplicationInfo PRI))
functionstring GetPlayerNameStr (UTPlayerReplicationInfo PRI))
functionstring GetPlayerScore (UTPlayerReplicationInfo PRI))
functionint GetPRICount ()))
function GetPRIList (UTGameReplicationInfo GRI))
functionUTPlayerReplicationInfo GetPRIUnderCursor ()))
functionstring GetRightMisc (UTPlayerReplicationInfo PRI))
functionint GetSelectedIndex ()))
event GetSupportedUIActionKeyNames (out array out_KeyNames ))
functionstring GetTimeOnline (UTPlayerReplicationInfo PRI))
functionbool IsValidScoreboardPlayer (UTPlayerReplicationInfo PRI))
function NotifyGameSessionEnded ()))
function OnNotifyResolutionChanged (const out Vector2D OldViewportsize, const out Vector2D NewViewportSize ))
event PostInitialize ()))
functionbool ProcessInputKey (const out SubscribedInputEventParameters EventParms ))
function SelectUnderCursor ()))
function SetHeaderStrings ()))
function SetSelectedIndex (int GUIIndex))
function SizeFonts ()))
function StrLen (String Text, out float XL, out float YL, int FontIdx, float FontScale))
functionstring UserString (string Template, UTPlayerReplicationInfo PRI))
Inherited Functions from UTGame.UTDrawPanel
Draw2DLine, DrawPanel
Inherited Functions from UTGame.UTUI_Widget
FindDataStore, GetPlayerControllerId, NotifyGameSessionEnded


Variables Detail

AllyColor Source code

var color AllyColor;
Scoreboard color for allies (in betrayal gametype)

bCensor Source code

var transient bool bCensor;

bIsSplitScreen Source code

var transient bool bIsSplitScreen;

bMustDrawLocalPRI Source code

var bool bMustDrawLocalPRI;
whether or not this list should always attempt to include the local player's PRI, skipping other players if necessary to make it fit

FakeNames[32] Source code

var transient string FakeNames[32];

HeaderTitle_Deaths Source code

var string HeaderTitle_Deaths;

HeaderTitle_Name Source code

var string HeaderTitle_Name;

HeaderTitle_Score Source code

var string HeaderTitle_Score;

LastCellHeight Source code

var transient float LastCellHeight;
We cache this so we don't have to resize everything for a mouse click

LeftColumnPosX Source code

var transient float LeftColumnPosX;

LeftColumnWidth Source code

var transient float LeftColumnWidth;

NameCnt Source code

var transient int NameCnt;

PingString Source code

var localized string PingString;

PlayerOwner Source code

var transient UTPlayerController PlayerOwner;

PRIList Source code

var transient array<UTPlayerReplicationInfo> PRIList;
Holds a list of PRI's currently being worked on. Note it cleared every frame

PRIListSize Source code

var transient int PRIListSize;

RightColumnPosX Source code

var transient float RightColumnPosX;

RightColumnWidth Source code

var transient float RightColumnWidth;

SelectedPI Source code

var transient int SelectedPI;
The Player Index of the currently selected player

SelectedUIIndex Source code

var transient int SelectedUIIndex;
Index of the selected player in the UI list

SplitScreenHeaderAdjustmentY Source code

var float SplitScreenHeaderAdjustmentY;

SplitScreenScorePosAdjustmentY Source code

var float SplitScreenScorePosAdjustmentY;

TeamColors[2] Source code

var transient color TeamColors[2];

UTHudSceneOwner Source code

var UTUIScene_Hud UTHudSceneOwner;
Cached reference to the HUDSceneOwner

WeaponCoords[10] Source code

var UIRoot.TextureCoordinates WeaponCoords[10];
Weapon icon coordinates

Test

bShowTextBounds Source code

var(Test) transient bool bShowTextBounds;

EditorTestNoPlayers Source code

var(Test) transient int EditorTestNoPlayers;

UTScoreboardPanel

AssociatedTeamIndex Source code

var(UTScoreboardPanel) int AssociatedTeamIndex;

BackgroundCoords Source code

var(UTScoreboardPanel) TextureCoordinates BackgroundCoords;

BackgroundTex Source code

var(UTScoreboardPanel) Texture2D BackgroundTex;

BarPerc Source code

var(UTScoreboardPanel) float BarPerc;

bDrawPlayerNum Source code

var(UTScoreboardPanel) bool bDrawPlayerNum;

bInteractive Source code

var(UTScoreboardPanel) bool bInteractive;
If true, this scoreboard will be considered to be interactive

BlingCoords Source code

var(UTScoreboardPanel) TextureCoordinates BlingCoords;

BlingPct Source code

var(UTScoreboardPanel) TextureCoordinates BlingPct;

BlingTex Source code

var(UTScoreboardPanel) Texture2D BlingTex;

ClanMultiplier Source code

var(UTScoreboardPanel) float ClanMultiplier;

ClanPosAdjust Source code

var(UTScoreboardPanel) float ClanPosAdjust;

ClanTagPerc Source code

var(UTScoreboardPanel) float ClanTagPerc;

Fonts[4] Source code

var(UTScoreboardPanel) SBFontData Fonts[4];
Font Data 0 = Tiny, 1=Small, 2=Med, 3=Large

FragsXPct Source code

var(UTScoreboardPanel) float FragsXPct;

HeaderFont Source code

var(UTScoreboardPanel) font HeaderFont;

HeaderXPct Source code

var(UTScoreboardPanel) float HeaderXPct;

HeaderYPos Source code

var(UTScoreboardPanel) float HeaderYPos;

HeroCoords Source code

var(UTScoreboardPanel) TextureCoordinates HeroCoords;

HeroTexture Source code

var(UTScoreboardPanel) Texture2D HeroTexture;

HighlightPad Source code

var(UTScoreboardPanel) float HighlightPad;

LeftMiscStr Source code

var(UTScoreboardPanel) config string LeftMiscStr;

MainPerc Source code

var(UTScoreboardPanel) float MainPerc;

MinFontScale Source code

var(UTScoreboardPanel) float MinFontScale;

MiscMultiplier Source code

var(UTScoreboardPanel) float MiscMultiplier;

MiscPerc Source code

var(UTScoreboardPanel) float MiscPerc;

MiscPosAdjust Source code

var(UTScoreboardPanel) float MiscPosAdjust;

PlayerNamePad Source code

var(UTScoreboardPanel) float PlayerNamePad;

RightMiscStr Source code

var(UTScoreboardPanel) config string RightMiscStr;

ScoreFont Source code

var(UTScoreboardPanel) font ScoreFont;

ScorePosition Source code

var(UTScoreboardPanel) vector2D ScorePosition;

SelBarTex Source code

var(UTScoreboardPanel) Texture2D SelBarTex;

SpacerPerc Source code

var(UTScoreboardPanel) float SpacerPerc;

TextLeftPadPct Source code

var(UTScoreboardPanel) float TextLeftPadPct;

TextPctHeight Source code

var(UTScoreboardPanel) float TextPctHeight;

TextPctWidth Source code

var(UTScoreboardPanel) float TextPctWidth;

TextTopPadPct Source code

var(UTScoreboardPanel) float TextTopPadPct;


Enumerations Detail

EFontType Source code

enum EFontType
{
EFT_Tiny, EFT_Small, EFT_Med, EFT_Large,
};
Defines the different font sizes


Structures Detail

SBFontData Source code

struct SBFontData
{
var transient int CharHeight;
var(UTScoreboardPanel) font Font;
};
Holds the font data. We cache the max char height for quick lookup


Delegates Detail

OnSelectionChange Source code

delegate OnSelectionChange ( UTScoreboardPanel TargetScoreboard, UTPlayerReplicationInfo PRI )


Functions Detail

AutoFit Source code

function float AutoFit ( UTGameReplicationInfo GRI, out int FontIndex,out int ClanTagFontIndex, out int MiscFontIndex, out float FontScale, bool bPrimeList) )
Figure a way to fit the data. This will probably be specific to each game type @Param GRI The Game ReplicationIfno @Param FontIndex The Index to use for the main text @Param ClanTagFontIndex The Index to use for the Clan Tag @Param MiscFontIndex The Index to use for the Misc tag @Param FontSCale The final font scaling factor to use if all else fails @Param bPrimeList Should only be true the first call. Will build a list of who needs to be checked.

ChangeSelection Source code

function ChangeSelection ( int Ofst) )
[ InteractiveMode

CheckSelectedPRI Source code

function CheckSelectedPRI ( ) )

DisableScoreboard Source code

function int DisableScoreboard ( ) )

DrawClanTag Source code

function DrawClanTag ( UTPlayerReplicationInfo PRI, float X, out float YPos, int FontIndex, float FontScale) )
Draw the player's clan tag.

DrawDaggers Source code

function DrawDaggers ( UTBetrayalPRI PRI, float PosX, float PosY) )

DrawHighlight Source code

function DrawHighlight ( UTPlayerReplicationInfo PRI, float YPos, float CellHeight, float FontScale) )
Draw any highlights. These should render underneath the full width of the cell

DrawMisc Source code

function DrawMisc ( UTPlayerReplicationInfo PRI, float NameOfst, out float YPos, int FontIndex, float FontScale) )
Draw any Misc data

DrawPanel Source code

event DrawPanel ( ) )
Draw the Scoreboard

DrawPlayerName Source code

function DrawPlayerName ( UTPlayerReplicationInfo PRI, float NameOfst, float NameClipX, out float YPos, int FontIndex, float FontScale, bool bIncludeClan) )
Draw the Player's Name

DrawPlayerNum Source code

simulated function DrawPlayerNum ( UTPlayerReplicationInfo PRI,int PIndex, out float YPos, float FontIndex, float FontScale) )
Draw's the player's Number (ie "1.")

DrawPRI Source code

function DrawPRI ( int PIndex, UTPlayerReplicationInfo PRI, float CellHeight, int FontIndex, int ClanTagFontIndex, int MiscFontIndex, float FontScale, out float YPos) )
Draw an full cell.. Call the functions above.

DrawScore Source code

function float DrawScore ( UTPlayerReplicationInfo PRI, float YPos, int FontIndex, float FontScale) )
Draw the Player's Score

DrawScoreHeader Source code

function DrawScoreHeader ( ) )

DrawString Source code

function float DrawString ( String Text, float XPos, float YPos, int FontIdx, float FontScale) )
Our own implementation of DrawString that manages font lookup and scaling

DrawTeamScore Source code

function DrawTeamScore ( )
Default to drawing nothing

EnableScoreboard Source code

function EnableScoreboard ( optional int NewUIIndex = -1) )

FindSelfInScoreboard Source code

function bool FindSelfInScoreboard ( out int GUIIndex) )

GetClanTagStr Source code

function string GetClanTagStr ( UTPlayerReplicationInfo PRI) )
Returns the Clan Tag in the PRI

GetHeaderColor Source code

function LinearColor GetHeaderColor ( ) )
Get the header color

GetLeftMisc Source code

function string GetLeftMisc ( UTPlayerReplicationInfo PRI) )
Get the Left Misc string

GetMousePosition Source code

function Vector GetMousePosition ( ) )

GetPlayerDeaths Source code

function string GetPlayerDeaths ( UTPlayerReplicationInfo PRI) )
Returns the # of deaths as a string

GetPlayerNameStr Source code

function string GetPlayerNameStr ( UTPlayerReplicationInfo PRI) )
Returns the Player's Name

GetPlayerScore Source code

function string GetPlayerScore ( UTPlayerReplicationInfo PRI) )
Returns the score as a string

GetPRICount Source code

function int GetPRICount ( ) )

GetPRIList Source code

function GetPRIList ( UTGameReplicationInfo GRI) )
Scan the PRIArray and get any valid PRI's for display

GetPRIUnderCursor Source code

function UTPlayerReplicationInfo GetPRIUnderCursor ( ) )

GetRightMisc Source code

function string GetRightMisc ( UTPlayerReplicationInfo PRI) )
Get the Right Misc string

GetSelectedIndex Source code

function int GetSelectedIndex ( ) )

GetSupportedUIActionKeyNames Source code

event GetSupportedUIActionKeyNames ( out array<Name> out_KeyNames ) )
Setup Input subscriptions

GetTimeOnline Source code

function string GetTimeOnline ( UTPlayerReplicationInfo PRI) )
Returns the time online as a string

IsValidScoreboardPlayer Source code

function bool IsValidScoreboardPlayer ( UTPlayerReplicationInfo 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

NotifyGameSessionEnded Source code

function NotifyGameSessionEnded ( ) )

OnNotifyResolutionChanged Source code

function OnNotifyResolutionChanged ( const out Vector2D OldViewportsize, const out Vector2D NewViewportSize ) )
Whenever there is a resolution change, make sure we recache the font sizes

PostInitialize Source code

event PostInitialize ( ) )

ProcessInputKey Source code

function bool ProcessInputKey ( const out SubscribedInputEventParameters EventParms ) )

SelectUnderCursor Source code

function SelectUnderCursor ( ) )

SetHeaderStrings Source code

function SetHeaderStrings ( ) )
Sets the header strings using localized values

SetSelectedIndex Source code

function SetSelectedIndex ( int GUIIndex) )

SizeFonts Source code

function SizeFonts ( ) )
Precache the sizing of the fonts so we don't have to constant look it up

StrLen Source code

function StrLen ( String Text, out float XL, out float YL, int FontIdx, float FontScale) )
Our own version of StrLen that manages font lookup and scaling

UserString Source code

function string UserString ( string Template, UTPlayerReplicationInfo PRI) )
Does string replace on the user string for several values


Defaultproperties

defaultproperties
{
   Fonts(0)=(Font=Font'EngineFonts.SmallFont')
   Fonts(1)=(Font=MultiFont'UI_Fonts_Final.HUD.MF_Small')
   Fonts(2)=(Font=MultiFont'UI_Fonts_Final.HUD.MF_Medium')
   Fonts(3)=(Font=MultiFont'UI_Fonts_Final.HUD.MF_Large')
   bMustDrawLocalPRI=True
   MainPerc=0.950000
   ClanTagPerc=0.700000
   MiscPerc=1.100000
   BarPerc=1.200000
   SelBarTex=Texture2D'UI_HUD.HUD.UI_HUD_BaseC'
   AssociatedTeamIndex=-1
   SplitScreenHeaderAdjustmentY=1.250000
   SplitScreenScorePosAdjustmentY=1.500000
   PingString="Ping"
   HeroCoords=(U=136.000000,V=11.000000,UL=81.000000,VL=74.000000)
   AllyColor=(B=255,G=128,R=64,A=0)
   WeaponCoords(0)=(U=453.000000,V=327.000000,UL=135.000000,VL=57.000000)
   WeaponCoords(1)=(U=600.000000,V=341.000000,UL=111.000000,VL=58.000000)
   WeaponCoords(2)=(U=600.000000,V=399.000000,UL=128.000000,VL=62.000000)
   WeaponCoords(3)=(U=728.000000,V=382.000000,UL=162.000000,VL=45.000000)
   WeaponCoords(4)=(U=453.000000,V=467.000000,UL=147.000000,VL=41.000000)
   WeaponCoords(5)=(U=131.000000,V=429.000000,UL=132.000000,VL=52.000000)
   WeaponCoords(6)=(U=453.000000,V=508.000000,UL=147.000000,VL=52.000000)
   WeaponCoords(7)=(U=131.000000,V=379.000000,UL=129.000000,VL=50.000000)
   WeaponCoords(8)=(U=726.000000,V=532.000000,UL=165.000000,VL=51.000000)
   WeaponCoords(9)=(U=453.000000,V=384.000000,UL=147.000000,VL=82.000000)
   DefaultStates(3)=Class'Engine.UIState_Active'
   DefaultStates(4)=Class'Engine.UIState_Focused'
   Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'UTGame.Default__UTDrawPanel:WidgetEventComponent'
      ObjectArchetype=UIComp_Event'UTGame.Default__UTDrawPanel:WidgetEventComponent'
   End Object
   EventProvider=WidgetEventComponent
   Name="Default__UTScoreboardPanel"
   ObjectArchetype=UTDrawPanel'UTGame.Default__UTDrawPanel'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:56.100 - Created with UnCodeX