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
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 |
Functions Summary |
| | DrawEllipsis (float X, float Y, float XL, float YL, byte DrawStage))
|
| | DrawHeader ()))
|
| | DrawPlayer (PlayerReplicationInfo PRI, int Rank, float X, float Y, float XL, float YL, byte DrawStage))
|
| | DrawPlayerHeader (bool bAnyPlayers, float X, float Y, float XL, float YL, byte DrawStage))
|
| | DrawPlayers (byte DrawStage))
|
| | DrawSpectator (PlayerReplicationInfo PRI, float X, float Y, float XL, float YL, byte DrawStage))
|
| | DrawSpectatorHeader (float X, float Y, float XL, float YL))
|
| | DrawSpectators (byte DrawStage))
|
| String | GetDefaultScoreInfoString ()))
|
| Font | GetFontSizeOffset (Font aFont, int offset))
|
| string | GetLevelTitle (LevelInfo Level))
|
| bool | GetStatPercent (BetrayalPRI PRI, out int Percent, out int ValueA, out int ValueB))
|
| bool | InOrder (PlayerReplicationInfo P1, PlayerReplicationInfo P2))
|
| | LayoutScoreboard ()))
|
| | NextStats ()))
|
| | UpdateScoreBoard (Canvas C))
|
Inherited Functions from Engine.ScoreBoard |
DrawScoreboard, FormatTime, GetSmallerFontFor, GetSmallFontFor, HaveHalfFont, Init, InitGRI, InitTitle, InOrder, NextStats, PostBeginPlay, SortPRIArray, UpdateGRI, UpdateScoreBoard |
const STAT_TYPE_MAX = 4;
var float AreaBGScale;
var float AreaPadding;
var float DaggerGroupOffset;
var float DaggerScale;
var float DaggerSpacing;
var transient int FirstSpectator;
var float HeaderAreaTop;
var
color HeaderTextColor;
var Font InfoFont;
var float ItemBGScale;
var float ItemPadding;
var float ItemSpacing;
var transient float LargeTextYL;
var
color LocalItemTextColor;
var transient int LocalPlayerIndex;
var transient int LocalPlayerRank;
var transient int LocalSpectatorIndex;
var transient int LocalSpectatorNum;
var float NameMaxWidth;
var float NamePos;
var float NetPos;
var
IntBox NotReadyIconCoords;
var transient int NumDrawnPlayers;
var transient int NumDrawnSpectators;
var transient int NumPlayers;
var transient int NumSpectators;
var Font PlayerFont;
var float PlayersAreaLeft;
var float PlayersAreaMaxHeight;
var float PlayersAreaTop;
var float PlayersAreaWidth;
var transient float PlayersHeight;
var transient float PlayersLeft;
var transient float PlayersRowHeight;
var transient float PlayersRowSpacing;
var transient float PlayersTop;
var transient float PlayersWidth;
var float RankPos;
var float ResScale;
var float ScorePos;
var Font SpectatorFont;
var float SpectatorsAreaBottom;
var float SpectatorsAreaLeft;
SpectatorsAreaMinSpacing Source code
var float SpectatorsAreaMinSpacing;
var float SpectatorsAreaWidth;
var transient float SpectatorsHeight;
var transient float SpectatorsLeft;
var transient float SpectatorsRowHeight;
var transient float SpectatorsRowSpacing;
var transient float SpectatorsTop;
var transient float SpectatorsWidth;
StatCaption[STAT_TYPE_MAX] Source code
var localized string StatCaption[STAT_TYPE_MAX];
var float StatPos;
var byte StatType;
var
color TeamBGColor[
2];
var string Title;
var string VictoryCondition;
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) )
GetDefaultScoreInfoString Source code
function String GetDefaultScoreInfoString ( ) )
static function Font GetFontSizeOffset ( Font aFont, int offset) )
static function
string GetLevelTitle (
LevelInfo Level) )
function
bool GetStatPercent (
BetrayalPRI PRI, out
int Percent, out
int ValueA, out
int ValueB) )
function LayoutScoreboard ( ) )
function NextStats ( ) )
function UpdateScoreBoard (
Canvas C) )
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)
}
|
Creation time: Do 14.8.2014 09:58:00.502 - Created with
UnCodeX