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

Betrayal.BetrayalScoreboard

Extends
ScoreBoardDeathMatch

BetrayalScoreboard Creation date: 2011-03-10 00:14 Last change: $Id$ Copyright © 2011, Wormbo Website: http://www.koehler-homepage.de/Wormbo/ Feel free to reuse this code. Send me a note if you found it helpful or want to report bugs/provide improvements.

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Info
      |   
      +-- Engine.ScoreBoard
         |   
         +-- XInterface.ScoreBoardDeathMatch
            |   
            +-- Betrayal.BetrayalScoreboard

Constants Summary
STAT_TYPE_MAX=4
Inherited Contants from XInterface.ScoreBoardDeathMatch
MAXPLAYERS

Variables Summary
colorAreaBGColor
floatAreaBGScale
floatAreaPadding
MaterialBGMaterial
BetrayalGRIBGRI
CanvasCanvas
floatDaggerGroupOffset
MaterialDaggerIcon
IntBoxDaggerIconCoords
floatDaggerScale
floatDaggerSpacing
intFirstSpectator
floatHeaderAreaTop
colorHeaderTextColor
FontInfoFont
colorItemBGColor
floatItemBGScale
floatItemPadding
floatItemSpacing
colorItemTextColor
floatLargeTextYL
BetrayalPRILocalBPRI
colorLocalItemTextColor
intLocalPlayerIndex
intLocalPlayerRank
PlayerReplicationInfoLocalPRI
intLocalSpectatorIndex
intLocalSpectatorNum
floatNameMaxWidth
floatNamePos
floatNetPos
MaterialNotReadyIcon
IntBoxNotReadyIconCoords
intNumDrawnPlayers
intNumDrawnSpectators
intNumPlayers
intNumSpectators
FontPlayerFont
floatPlayersAreaLeft
floatPlayersAreaMaxHeight
floatPlayersAreaTop
floatPlayersAreaWidth
floatPlayersHeight
floatPlayersLeft
floatPlayersRowHeight
floatPlayersRowSpacing
floatPlayersTop
floatPlayersWidth
floatRankPos
MaterialReadyIcon
IntBoxReadyIconCoords
floatResScale
colorRogueBGColor
floatScorePos
FontSpectatorFont
floatSpectatorsAreaBottom
floatSpectatorsAreaLeft
floatSpectatorsAreaMinSpacing
floatSpectatorsAreaWidth
floatSpectatorsHeight
floatSpectatorsLeft
floatSpectatorsRowHeight
floatSpectatorsRowSpacing
floatSpectatorsTop
floatSpectatorsWidth
stringStatCaption[STAT_TYPE_MAX]
floatStatPos
byteStatType
colorTeamBGColor[2]
stringTitle
stringVictoryCondition
Inherited Variables from XInterface.ScoreBoardDeathMatch
AdminText, BoxMaterial, Continue, DeathsText, Ended, FooterText, FPH, FPHTime, FragLimit, GameType, MapName, MatchIDText, MaxLives, NetText, NotReadyText, OutFireText, OutText, PingText, PlayerText, PLText, PointsText, PRIArray[MAXPLAYERS], RankText, ReadyText, Restart, SkillLevel[8], Spacer, TimeLimit, TimeText
Inherited Variables from Engine.ScoreBoard
bDisplayMessages, GRI, HUDClass

Functions Summary
function DrawEllipsis (float X, float Y, float XL, float YL, byte DrawStage))
function DrawHeader ()))
function DrawPlayer (PlayerReplicationInfo PRI, int Rank, float X, float Y, float XL, float YL, byte DrawStage))
function DrawPlayerHeader (bool bAnyPlayers, float X, float Y, float XL, float YL, byte DrawStage))
function DrawPlayers (byte DrawStage))
function DrawSpectator (PlayerReplicationInfo PRI, float X, float Y, float XL, float YL, byte DrawStage))
function DrawSpectatorHeader (float X, float Y, float XL, float YL))
function DrawSpectators (byte DrawStage))
functionString GetDefaultScoreInfoString ()))
functionFont GetFontSizeOffset (Font aFont, int offset))
functionstring GetLevelTitle (LevelInfo Level))
functionbool GetStatPercent (BetrayalPRI PRI, out int Percent, out int ValueA, out int ValueB))
functionbool InOrder (PlayerReplicationInfo P1, PlayerReplicationInfo P2))
function LayoutScoreboard ()))
function NextStats ()))
function UpdateScoreBoard (Canvas C))
Inherited Functions from XInterface.ScoreBoardDeathMatch
DrawMatchID, DrawNetInfo, DrawTitle, ExtraMarking, GetDefaultScoreInfoString, GetRestartString, GetTitleString, UpdatePrecacheFonts, UpdatePrecacheMaterials, UpdateScoreBoard
Inherited Functions from Engine.ScoreBoard
DrawScoreboard, FormatTime, GetSmallerFontFor, GetSmallFontFor, HaveHalfFont, Init, InitGRI, InitTitle, InOrder, NextStats, PostBeginPlay, SortPRIArray, UpdateGRI, UpdateScoreBoard


Constants Detail

STAT_TYPE_MAX Source code

const STAT_TYPE_MAX = 4;


Variables Detail

AreaBGColor Source code

var color AreaBGColor;

AreaBGScale Source code

var float AreaBGScale;

AreaPadding Source code

var float AreaPadding;

BGMaterial Source code

var Material BGMaterial;

BGRI Source code

var BetrayalGRI BGRI;

Canvas Source code

var transient Canvas Canvas;
Only valid during UpdateScoreboard().

DaggerGroupOffset Source code

var float DaggerGroupOffset;

DaggerIcon Source code

var Material DaggerIcon;

DaggerIconCoords Source code

var IntBox DaggerIconCoords;

DaggerScale Source code

var float DaggerScale;

DaggerSpacing Source code

var float DaggerSpacing;

FirstSpectator Source code

var transient int FirstSpectator;

HeaderAreaTop Source code

var float HeaderAreaTop;

HeaderTextColor Source code

var color HeaderTextColor;

InfoFont Source code

var Font InfoFont;

ItemBGColor Source code

var color ItemBGColor;

ItemBGScale Source code

var float ItemBGScale;

ItemPadding Source code

var float ItemPadding;

ItemSpacing Source code

var float ItemSpacing;

ItemTextColor Source code

var color ItemTextColor;

LargeTextYL Source code

var transient float LargeTextYL;

LocalBPRI Source code

var BetrayalPRI LocalBPRI;

LocalItemTextColor Source code

var color LocalItemTextColor;

LocalPlayerIndex Source code

var transient int LocalPlayerIndex;

LocalPlayerRank Source code

var transient int LocalPlayerRank;

LocalPRI Source code

var PlayerReplicationInfo LocalPRI;

LocalSpectatorIndex Source code

var transient int LocalSpectatorIndex;

LocalSpectatorNum Source code

var transient int LocalSpectatorNum;

NameMaxWidth Source code

var float NameMaxWidth;

NamePos Source code

var float NamePos;

NetPos Source code

var float NetPos;

NotReadyIcon Source code

var Material NotReadyIcon;

NotReadyIconCoords Source code

var IntBox NotReadyIconCoords;

NumDrawnPlayers Source code

var transient int NumDrawnPlayers;

NumDrawnSpectators Source code

var transient int NumDrawnSpectators;

NumPlayers Source code

var transient int NumPlayers;

NumSpectators Source code

var transient int NumSpectators;

PlayerFont Source code

var Font PlayerFont;

PlayersAreaLeft Source code

var float PlayersAreaLeft;

PlayersAreaMaxHeight Source code

var float PlayersAreaMaxHeight;

PlayersAreaTop Source code

var float PlayersAreaTop;

PlayersAreaWidth Source code

var float PlayersAreaWidth;

PlayersHeight Source code

var transient float PlayersHeight;

PlayersLeft Source code

var transient float PlayersLeft;

PlayersRowHeight Source code

var transient float PlayersRowHeight;

PlayersRowSpacing Source code

var transient float PlayersRowSpacing;

PlayersTop Source code

var transient float PlayersTop;

PlayersWidth Source code

var transient float PlayersWidth;

RankPos Source code

var float RankPos;

ReadyIcon Source code

var Material ReadyIcon;

ReadyIconCoords Source code

var IntBox ReadyIconCoords;

ResScale Source code

var float ResScale;

RogueBGColor Source code

var color RogueBGColor;

ScorePos Source code

var float ScorePos;

SpectatorFont Source code

var Font SpectatorFont;

SpectatorsAreaBottom Source code

var float SpectatorsAreaBottom;

SpectatorsAreaLeft Source code

var float SpectatorsAreaLeft;

SpectatorsAreaMinSpacing Source code

var float SpectatorsAreaMinSpacing;

SpectatorsAreaWidth Source code

var float SpectatorsAreaWidth;

SpectatorsHeight Source code

var transient float SpectatorsHeight;

SpectatorsLeft Source code

var transient float SpectatorsLeft;

SpectatorsRowHeight Source code

var transient float SpectatorsRowHeight;

SpectatorsRowSpacing Source code

var transient float SpectatorsRowSpacing;

SpectatorsTop Source code

var transient float SpectatorsTop;

SpectatorsWidth Source code

var transient float SpectatorsWidth;

StatCaption[STAT_TYPE_MAX] Source code

var localized string StatCaption[STAT_TYPE_MAX];

StatPos Source code

var float StatPos;

StatType Source code

var byte StatType;

TeamBGColor[2] Source code

var color TeamBGColor[2];

Title Source code

var string Title;

VictoryCondition Source code

var string VictoryCondition;


Functions Detail

DrawEllipsis Source code

function DrawEllipsis ( float X, float Y, float XL, float YL, byte DrawStage) )

DrawHeader Source code

function DrawHeader ( ) )

DrawPlayer Source code

function DrawPlayer ( PlayerReplicationInfo PRI, int Rank, float X, float Y, float XL, float YL, byte DrawStage) )

DrawPlayerHeader Source code

function DrawPlayerHeader ( bool bAnyPlayers, float X, float Y, float XL, float YL, byte DrawStage) )

DrawPlayers Source code

function DrawPlayers ( byte DrawStage) )

DrawSpectator Source code

function DrawSpectator ( PlayerReplicationInfo PRI, float X, float Y, float XL, float YL, byte DrawStage) )

DrawSpectatorHeader Source code

function DrawSpectatorHeader ( float X, float Y, float XL, float YL) )

DrawSpectators Source code

function DrawSpectators ( byte DrawStage) )

GetDefaultScoreInfoString Source code

function String GetDefaultScoreInfoString ( ) )

GetFontSizeOffset Source code

static function Font GetFontSizeOffset ( Font aFont, int offset) )

GetLevelTitle Source code

static function string GetLevelTitle ( LevelInfo Level) )
Returns the current level's title. If the mapper didn't set a title, processes the map package name to create one. (Borrowed from JB2004 scoreboard.)

GetStatPercent Source code

function bool GetStatPercent ( BetrayalPRI PRI, out int Percent, out int ValueA, out int ValueB) )

InOrder Source code

function bool InOrder ( PlayerReplicationInfo P1, PlayerReplicationInfo P2) )

LayoutScoreboard Source code

function LayoutScoreboard ( ) )

NextStats Source code

function NextStats ( ) )

UpdateScoreBoard Source code

function UpdateScoreBoard ( Canvas C) )


Defaultproperties

defaultproperties
{
	HUDClass = class'BetrayalHud'
	bDisplayMessages = True


	StatCaption[0] = "ACCURACY"
	StatCaption[1] = "EFFICIENCY"
	StatCaption[2] = "PAYBACK"
	StatCaption[3] = "RETRIBUTION"


	HeaderAreaTop           = 0.01
	PlayersAreaLeft         = 0.05
	PlayersAreaTop          = 0.13
	PlayersAreaWidth        = 0.9
	PlayersAreaMaxHeight    = 0.72


	RankPos      = 0.045
	NamePos      = 0.05
	NameMaxWidth = 0.4
	ScorePos     = 0.55
	StatPos      = 0.75
	NetPos       = 0.96


	SpectatorsAreaLeft       = 0.75
	SpectatorsAreaBottom     = 0.99
	SpectatorsAreaWidth      = 0.2
	SpectatorsAreaMinSpacing = 0.01


	DaggerIcon        = Texture'BetrayalIcons'
	DaggerIconCoords  = (X1=0,Y1=35,X2=15,Y2=62)
	DaggerScale       = 0.9
	DaggerSpacing     = 5
	DaggerGroupOffset = 2


	ReadyIcon          = Texture'BetrayalIcons'
	ReadyIconCoords    = (X1=2,Y1=1,X2=28,Y2=31)
	NotReadyIcon       = Texture'BetrayalIcons'
	NotReadyIconCoords = (X1=34,Y1=1,X2=60,Y2=31)


	BGMaterial  = Texture'RoundedBox'
	AreaBGColor = (R=32,G=32,B=32,A=128)
	AreaBGScale = 0.25
	AreaPadding = 4.0


	ItemBGColor = (R=0,G=0,B=0,A=128)
	ItemBGScale = 0.125
	ItemPadding = 2.0
	ItemSpacing = 1.0


	HeaderTextColor    = (R=255,G=255,B=255,A=255)
	RogueBGColor       = (R=64,G=48,B=0,A=160)
	TeamBGColor[0]     = (R=80,G=0,B=0,A=160)
	TeamBGColor[1]     = (R=0,G=16,B=80,A=160)
	ItemTextColor      = (R=192,G=192,B=192,A=255)
	LocalItemTextColor = (R=255,G=255,B=128,A=255)
}



Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:00.502 - Created with UnCodeX