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

Betrayal.BetrayalHud

Extends
HudCDeathMatch

BetrayalHud Creation date: 2010-05-19 12:43 Last change: $Id$

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Hud
      |   
      +-- XInterface.HudBase
         |   
         +-- XInterface.HudCDeathMatch
            |   
            +-- Betrayal.BetrayalHud

Constants Summary
Inherited Contants from XInterface.HudCDeathMatch
WEAPON_BAR_SIZE

Variables Summary
colorAreaBGColor
floatAreaBGScale
floatAreaPadding
TextureBeaconTex
MaterialBGMaterial
BetrayalGRIBGRI
floatDaggerGroupOffset
floatDaggerHeight
MaterialDaggerIcon
IntBoxDaggerIconCoords
floatDaggerSpacing
floatDaggerWidth
stringFreelanceString
colorItemBGColor
floatItemBGScale
floatItemPadding
floatItemSpacing
BetrayalPRILocalPRI
BetrayalTeamLocalTeam
intNameFontSize
stringPotString
stringRogueString
floatScoreboardConsoleMessagePosY
colorTeamTextColor[2]
BetrayalHud
SpriteWidgetAltConnectionAlert
SpriteWidgetAltConnectionBackground
SpriteWidgetAltConnectionBackgroundDisc
SpriteWidgetAltConnectionIcon
NumericWidgetAltConnectionLoss
NumericWidgetAltConnectionPing
SpriteWidgetAltConnectionUnlagStatus
SpriteWidgetConnectionAlert
SpriteWidgetConnectionBackground
SpriteWidgetConnectionBackgroundDisc
SpriteWidgetConnectionIcon
NumericWidgetConnectionLoss
NumericWidgetConnectionPing
SpriteWidgetConnectionUnlagStatus
Inherited Variables from XInterface.HudCDeathMatch
AdrenalineAlert, AdrenalineBackground, AdrenalineBackgroundDisc, AdrenalineCount, AdrenalineIcon, AmmoIcon, BarAmmoIcon[WEAPON_BAR_SIZE], BarBorderAmmoIndicator[WEAPON_BAR_SIZE], BarBorderScaledPosition[WEAPON_BAR_SIZE], BarBorder[WEAPON_BAR_SIZE], BarWeaponIconAnim[WEAPON_BAR_SIZE], BarWeaponIcon[WEAPON_BAR_SIZE], BarWeaponStates[WEAPON_BAR_SIZE], BaseWeapons[WEAPON_BAR_SIZE], bDrawTimer, bShowMissingWeaponInfo, CountDownName[10], CurAmmoPrimary, CurEnergy, CurHealth, CurRank, CurScore, CurShield, CurVehicleHealth, CustomHUDHighlightColor, DigitsAmmo, DigitsBig, DigitsBigPulse, DigitsHealth, DigitsShield, DigitsVehicleHealth, FadeTime, HudAmmoALERT, HudBorderAmmo, HudBorderHealth, HudBorderHealthIcon, HudBorderShield, HudBorderShieldIcon, HudBorderVehicleHealth, HudBorderVehicleHealthIcon, HudColorBlack, HudColorBlue, HudColorHighLight, HudColorNormal, HudColorRed, HudColorTeam[2], HudHealthALERT, HudVehicleHealthALERT, LastAdrenalineTime, LastDamagedHealth, LastDamagedVehicleHealth, LastEnergy, LastHealth, LastShield, LastVehicleHealth, LevelActionFontColor, LevelActionFontFont, LevelActionPositionX, LevelActionPositionY, LongCountName[10], MaxAmmoPrimary, MaxEnergy, MaxShield, myRank, MySceneManagers, myScore, MyScoreBackground, MyScoreIcon, mySpread, NamedPlayer, NameTime, OldPawn, OldRemainingTime, Portrait, PortraitTime, PortraitX, RechargeBar, ScoreDiff, TeamLinked, TimerBackground, TimerBackgroundDisc, TimerDigitSpacer[2], TimerHours, TimerIcon, TimerMinutes, TimerSeconds, UDamageIcon, UDamageTime, VehicleDrawTimer, VehicleName, ZoomToggleTime
Inherited Variables from XInterface.HudBase
AtMenus, bHideWeaponName, bIsCinematic, bShowTargeting, bUseCustomWeaponCrosshairs, bUsingCustomHUDColor, CroppingAmount, CroppingMaterial, Crosshairs, CustomHUDColor, DamageFlash[4], DamageTime[4], DoCropping, Emphasized[4], FontsPrecached, InitialViewingString, InstrDelta, InstrRate, InstructionFontFont, InstructionFontName, InstructionKeyText, InstructionText, InstructTextBorderX, InstructTextBorderY, LastWeaponName, LevelActionFontName, LevelActionLoading, LevelActionPaused, LocalMessages[8], LocationDot, NowViewing, PassStyle, ScoreText, TargetingLocation, TargetingSize, TargetMaterial, TeamIndex, text, VoteMenuClass, WaitingToSpawn, WeaponDrawColor, WeaponDrawTimer, WonMatchPostFix, WonMatchPrefix, YouveLostTheMatch, YouveWonTheMatch

Enumerations Summary
Inherited Enumerations from XInterface.HudBase
EScaleMode

Structures Summary
TeammateHudInfo
TeammateName, TeammateNameStrWidth, NumSilverDaggers, NumGoldDaggers
Inherited Structures from XInterface.HudCDeathMatch
WeaponState
Inherited Structures from XInterface.HudBase
DigitSet, HudLocalizedMessage, NumericWidget, SpriteWidget

Functions Summary
function DisplayConnectionStatus (Canvas C))
function DisplayMessages (Canvas C))
function DrawBox (Canvas C, Material M, float PosX, float PosY, float XL, float YL, float ScaleX, float ScaleY))
function DrawCustomBeacon (Canvas C, Pawn P, float ScreenLocX, float ScreenLocY))
function DrawEnemyName (Canvas C)
function DrawHudPassA (Canvas C))
function DrawSpectatingHud (Canvas C))
function DrawTeamInfo (Canvas C))
functionFont GetScaledFontSizeIndex (Canvas C, int FontSize))
function GetScreenCoords (float PosX, float PosY, out float ScreenX, out float ScreenY, out HudLocalizedMessage Message, Canvas C))
function LinkActors ()))
function Menu3SPN ()))
function MyMenu ()))
function NextStats ()))
Inherited Functions from XInterface.HudCDeathMatch
CalculateAmmo, CalculateEnergy, CalculateHealth, CalculateScore, CalculateShield, CheckCountdown, CustomCrosshairColorAllowed, CustomCrosshairsAllowed, CustomHUDColorAllowed, DisplayEnemyName, DisplayPortrait, DisplayVoiceGain, DrawAdrenaline, DrawChargeBar, DrawCrosshair, DrawEnemyName, DrawHUDAnimDigit, DrawHUDAnimWidget, DrawHudPassA, DrawHudPassC, DrawLevelAction, DrawSpectatingHud, DrawTimer, DrawUDamage, DrawVehicleChargeBar, DrawVehicleName, DrawWeaponBar, FadeZoom, GetInfoString, GetScoreTagLine, GetScoreText, GetScoreValue, GetTeamColor, GrowHUD, IsInCinematic, LoadLevelActionFont, PostBeginPlay, SetCustomCrosshairColors, SetCustomCrosshairs, SetCustomHUDColor, ShowReloadingPulse, ShrinkHUD, Tick, UpdateHud, UpdatePrecacheMaterials, UpdateRankAndSpread, ZoomFadeOut
Inherited Functions from XInterface.HudBase
ClearMessage, CreateKeyMenus, CustomHUDColorAllowed, DisplayHit, DisplayLocalMessages, Draw2DLocationDot, DrawCinematicHUD, DrawDamageIndicators, DrawHeadShotSphere, DrawHud, DrawHudPassA, DrawHudPassB, DrawHudPassC, DrawHudPassD, DrawInstructionGfx, DrawInstructionKeyText, DrawInstructionText, DrawIntroSubtitles, DrawMessage, DrawNumericWidget, DrawSpriteWidget, DrawTargeting, DrawVehicleName, DrawWeaponName, GetLocalStatsScreen, GetScreenCoords, GetTeamColor, LayoutMessage, LoadInstructionFont, LocalizedMessage, Message, PostBeginPlay, PrecacheFonts, SetCropping, SetCustomHUDColor, SetInstructionKeyText, SetInstructionText, SetTargeting, Tick, UpdateHud


Variables Detail

AreaBGColor Source code

var color AreaBGColor;

AreaBGScale Source code

var float AreaBGScale;

AreaPadding Source code

var float AreaPadding;

BeaconTex Source code

var Texture BeaconTex;

BGMaterial Source code

var Material BGMaterial;

BGRI Source code

var BetrayalGRI BGRI;

DaggerGroupOffset Source code

var float DaggerGroupOffset;

DaggerHeight Source code

var float DaggerHeight;

DaggerIcon Source code

var Material DaggerIcon;

DaggerIconCoords Source code

var IntBox DaggerIconCoords;

DaggerSpacing Source code

var float DaggerSpacing;

DaggerWidth Source code

var float DaggerWidth;

FreelanceString Source code

var localized string FreelanceString;

ItemBGColor Source code

var color ItemBGColor;

ItemBGScale Source code

var float ItemBGScale;

ItemPadding Source code

var float ItemPadding;

ItemSpacing Source code

var float ItemSpacing;

LocalPRI Source code

var BetrayalPRI LocalPRI;

LocalTeam Source code

var BetrayalTeam LocalTeam;

NameFontSize Source code

var int NameFontSize;

PotString Source code

var localized string PotString;

RogueString Source code

var localized string RogueString;

ScoreboardConsoleMessagePosY Source code

var float ScoreboardConsoleMessagePosY;

TeamTextColor[2] Source code

var color TeamTextColor[2];

BetrayalHud

AltConnectionAlert Source code

var(BetrayalHud) SpriteWidget AltConnectionAlert;

AltConnectionBackground Source code

var(BetrayalHud) SpriteWidget AltConnectionBackground;

AltConnectionBackgroundDisc Source code

var(BetrayalHud) SpriteWidget AltConnectionBackgroundDisc;

AltConnectionIcon Source code

var(BetrayalHud) SpriteWidget AltConnectionIcon;

AltConnectionLoss Source code

var(BetrayalHud) NumericWidget AltConnectionLoss;

AltConnectionPing Source code

var(BetrayalHud) NumericWidget AltConnectionPing;

AltConnectionUnlagStatus Source code

var(BetrayalHud) SpriteWidget AltConnectionUnlagStatus;

ConnectionAlert Source code

var(BetrayalHud) SpriteWidget ConnectionAlert;

ConnectionBackground Source code

var(BetrayalHud) SpriteWidget ConnectionBackground;

ConnectionBackgroundDisc Source code

var(BetrayalHud) SpriteWidget ConnectionBackgroundDisc;

ConnectionIcon Source code

var(BetrayalHud) SpriteWidget ConnectionIcon;

ConnectionLoss Source code

var(BetrayalHud) NumericWidget ConnectionLoss;

ConnectionPing Source code

var(BetrayalHud) NumericWidget ConnectionPing;

ConnectionUnlagStatus Source code

var(BetrayalHud) SpriteWidget ConnectionUnlagStatus;


Structures Detail

TeammateHudInfo Source code

struct TeammateHudInfo
{
var int NumGoldDaggers;
var int NumSilverDaggers;
var string TeammateName;
var float TeammateNameStrWidth;
};



Functions Detail

DisplayConnectionStatus Source code

function DisplayConnectionStatus ( Canvas C) )

DisplayMessages Source code

function DisplayMessages ( Canvas C) )

DrawBox Source code

static function DrawBox ( Canvas C, Material M, float PosX, float PosY, float XL, float YL, float ScaleX, float ScaleY) )
More flexible version of Canvas.DrawTileStretched().

DrawCustomBeacon Source code

function DrawCustomBeacon ( Canvas C, Pawn P, float ScreenLocX, float ScreenLocY) )

DrawEnemyName Source code

function DrawEnemyName ( Canvas C )

DrawHudPassA Source code

function DrawHudPassA ( Canvas C) )

DrawSpectatingHud Source code

function DrawSpectatingHud ( Canvas C) )

DrawTeamInfo Source code

function DrawTeamInfo ( Canvas C) )

GetScaledFontSizeIndex Source code

function Font GetScaledFontSizeIndex ( Canvas C, int FontSize) )

GetScreenCoords Source code

simulated function GetScreenCoords ( float PosX, float PosY, out float ScreenX, out float ScreenY, out HudLocalizedMessage Message, Canvas C) )
Make some room for the teammate list

LinkActors Source code

function LinkActors ( ) )

Menu3SPN Source code

exec function Menu3SPN ( ) )
Reuse TAM/Freon settings menu command.

MyMenu Source code

exec function MyMenu ( ) )
Reuse UTComp's settings menu command.

NextStats Source code

exec function NextStats ( ) )


Defaultproperties

defaultproperties
{
	DaggerIcon        = Texture'BetrayalIcons'
	DaggerIconCoords  = (X1=0,Y1=35,X2=15,Y2=62)
	DaggerWidth       = 10
	DaggerHeight      = 17.5
	DaggerSpacing     = 3.75
	DaggerGroupOffset = 1.875


	TeamTextColor[0] = (R=255,G=16,B=16,A=255)
	TeamTextColor[1] = (R=32,G=64,B=255,A=255)


	BeaconTex = Texture'ScoreBeacon'


	PotString       = "Pot"
	RogueString     = "Rogue"
	FreelanceString = "Freelance"


	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


	ScoreboardConsoleMessagePosY = 0.99


	FontArrayNames(8)="UT2003Fonts.FontMono"


	ConnectionIcon            = (WidgetTexture=Texture'ConnectionIcon',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=5,OffsetY=20,DrawPivot=DP_UpperRight,TextureCoords=(X1=0,Y1=0,X2=128,Y2=128),TextureScale=0.21,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=255,G=255,B=255,A=255),Tints[1]=(R=255,G=255,B=255,A=255))
	ConnectionBackground      = (WidgetTexture=Texture'HudContent.Generic.HUD',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=0,OffsetY=10,DrawPivot=DP_UpperRight,TextureCoords=(X1=168,Y1=211,X2=334,Y2=255),TextureScale=0.53,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=0,G=0,B=0,A=150),Tints[1]=(R=0,G=0,B=0,A=150))
	ConnectionBackgroundDisc  = (WidgetTexture=Texture'HudContent.Generic.HUD',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=0,OffsetY=5,DrawPivot=DP_UpperRight,TextureCoords=(X1=119,Y1=258,X2=173,Y2=313),TextureScale=0.53,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=255,G=255,B=255,A=255),Tints[1]=(R=255,G=255,B=255,A=255))
	ConnectionUnlagStatus     = (WidgetTexture=Material'HudContent.Generic.GlowCircle',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=4,OffsetY=2,DrawPivot=DP_UpperRight,TextureCoords=(X1=0,Y1=0,X2=64,Y2=64),TextureScale=0.5,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=0,G=0,B=0,A=255),Tints[1]=(R=0,G=0,B=0,A=255))
	ConnectionAlert           = (WidgetTexture=Material'HudContent.Generic.fb_Pulse001',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=6,OffsetY=1,DrawPivot=DP_UpperRight,TextureCoords=(X1=0,Y1=0,X2=64,Y2=64),TextureScale=0.53,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=255,G=192,B=0,A=255),Tints[1]=(R=255,G=192,B=0,A=255))
	ConnectionPing            = (RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=-74,OffsetY=32,DrawPivot=DP_MiddleRight,TextureScale=0.4,Tints[0]=(A=255),Tints[1]=(A=255))
	ConnectionLoss            = (RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=-100,OffsetY=78,DrawPivot=DP_MiddleRight,TextureScale=0.3,Tints[0]=(A=255),Tints[1]=(A=255))


	AltConnectionIcon            = (WidgetTexture=Texture'ConnectionIcon',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=5,OffsetY=156,DrawPivot=DP_UpperRight,TextureCoords=(X1=0,Y1=0,X2=128,Y2=128),TextureScale=0.21,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=255,G=255,B=255,A=255),Tints[1]=(R=255,G=255,B=255,A=255))
	AltConnectionBackground      = (WidgetTexture=Texture'HudContent.Generic.HUD',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=0,OffsetY=64,DrawPivot=DP_UpperRight,TextureCoords=(X1=168,Y1=211,X2=334,Y2=255),TextureScale=0.53,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=0,G=0,B=0,A=150),Tints[1]=(R=0,G=0,B=0,A=150))
	AltConnectionBackgroundDisc  = (WidgetTexture=Texture'HudContent.Generic.HUD',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=0,OffsetY=59,DrawPivot=DP_UpperRight,TextureCoords=(X1=119,Y1=258,X2=173,Y2=313),TextureScale=0.53,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=255,G=255,B=255,A=255),Tints[1]=(R=255,G=255,B=255,A=255))
	AltConnectionUnlagStatus     = (WidgetTexture=Material'HudContent.Generic.GlowCircle',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=4,OffsetY=59,DrawPivot=DP_UpperRight,TextureCoords=(X1=0,Y1=0,X2=64,Y2=64),TextureScale=0.5,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=0,G=0,B=0,A=255),Tints[1]=(R=0,G=0,B=0,A=255))
	AltConnectionAlert           = (WidgetTexture=Material'HudContent.Generic.fb_Pulse001',RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=6,OffsetY=55,DrawPivot=DP_UpperRight,TextureCoords=(X1=0,Y1=0,X2=64,Y2=64),TextureScale=0.53,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(R=255,G=192,B=0,A=255),Tints[1]=(R=255,G=192,B=0,A=255))
	AltConnectionPing            = (RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=-74,OffsetY=103,DrawPivot=DP_MiddleRight,TextureScale=0.4,Tints[0]=(A=255),Tints[1]=(A=255))
	AltConnectionLoss            = (RenderStyle=STY_Alpha,PosX=1.0,PosY=0.0,OffsetX=-100,OffsetY=173,DrawPivot=DP_MiddleRight,TextureScale=0.3,Tints[0]=(A=255),Tints[1]=(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.291 - Created with UnCodeX