Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

Difference between revisions of "UE2:HudBase (UT2004)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Auto-generated page)
 
m (added G15 properties and functions)
Line 5: Line 5:
 
| parent3 = Object
 
| parent3 = Object
 
}}
 
}}
{{autogenerated}}
+
Abstract base class for all {{gamename}} HUDs.
null
+
  
 
==Properties==
 
==Properties==
Line 1,422: Line 1,421:
  
 
'''Default value:''' "You've won the match!"
 
'''Default value:''' "You've won the match!"
 +
 +
===G15 variables===
 +
These variables were added in the UT2004 v3372 "G15" patch to control output to the keyboard's LCD screen.
 +
 +
====LastLCDUpdateTime====
 +
'''Type:''' [[float]]
 +
 +
<!-- enter variable description -->
 +
 +
====LCDUpdateFreq====
 +
'''Type:''' [[float]]
 +
 +
<!-- enter variable description -->
 +
 +
'''Default value:''' 1.0
 +
 +
====LCDDisplayMode====
 +
'''Type:''' [[int]]
 +
 +
'''[[Variables#Modifiers|Modifiers]]:''' config
 +
 +
<!-- enter variable description -->
 +
 +
'''Default value:''' 2
 +
 +
====LCDClassStr====
 +
'''Type:''' [[string]]
 +
 +
'''[[Static arrays|Array size]]:''' 8
 +
 +
'''[[Variables#Modifiers|Modifiers]]:''' config
 +
 +
<!-- enter variable description -->
 +
 +
'''Default value, index 0:''' "Rocket Launcher"
 +
 +
'''Default value, index 1:''' "Flak Cannon"
 +
 +
'''Default value, index 2:''' "Shock Rifle"
 +
 +
'''Default value, index 3:''' "Link Gun"
 +
 +
'''Default value, index 4:''' "Minigun"
 +
 +
'''Default value, index 5:''' "BIO-Rifle"
 +
 +
'''Default value, index 6:''' "Lightning Gun"
 +
 +
'''Default value, index 7:''' "Sniper Rifle"
 +
 +
====LCDDescStr====
 +
'''Type:''' [[string]]
 +
 +
'''[[Static arrays|Array size]]:''' 8
 +
 +
'''[[Variables#Modifiers|Modifiers]]:''' config
 +
 +
<!-- enter variable description -->
 +
 +
'''Default value, index 0:''' "Rockets:"
 +
 +
'''Default value, index 1:''' "Flak:"
 +
 +
'''Default value, index 2:''' "Shock:"
 +
 +
'''Default value, index 3:''' "Link:"
 +
 +
'''Default value, index 4:''' "Mini:"
 +
 +
'''Default value, index 5:''' "BIO:"
 +
 +
'''Default value, index 6:''' "LG:"
 +
 +
'''Default value, index 7:''' "Sniper:"
  
 
===Default values===
 
===Default values===
Line 1,610: Line 1,683:
  
 
<!-- enter function description -->
 
<!-- enter function description -->
 +
 +
====PostRender====
 +
{{code|simulated event '''PostRender''' ({{cl|Canvas}}&nbsp;'''Canvas''')}}
 +
 +
'''Overrides:''' {{tl|PostRender|Hud}}
 +
 +
Only in UT2004 v3372 "G15" patch. Periodically updates the keyboard LCD display as specified by {{tl|LCDUpdateFreq}}.
  
 
====Tick====
 
====Tick====
Line 1,615: Line 1,695:
  
 
'''Overrides:''' {{tl|Tick|Actor|events}}
 
'''Overrides:''' {{tl|Tick|Actor|events}}
 +
 +
<!-- enter function description -->
 +
 +
===G15 exec functions===
 +
These are only available in the UT2004 v3372 "G15" patch.
 +
 +
====LCDMode====
 +
{{code|exec function '''LCDMode''' ([[int]]&nbsp;'''newMode''')}}
 +
 +
<!-- enter function description -->
 +
 +
====NextLCDMode====
 +
{{code|exec function '''NextLCDMode''' ()}}
 +
 +
<!-- enter function description -->
 +
 +
====PrevLCDMode====
 +
{{code|exec function '''PrevLCDMode''' ()}}
  
 
<!-- enter function description -->
 
<!-- enter function description -->

Revision as of 06:49, 28 July 2008

UT2004 Object >> Actor >> Hud >> HudBase

Contents

Package: 
XInterface
Direct subclasses:
HudBDeathMatch, HudCDeathMatch
This class in other games:
UT2003

Abstract base class for all UT2004 HUDs.

Properties

Property group 'HudBase'

CroppingAmount

Type: float


Default value: 0.25

CroppingMaterial

Type: Material


Crosshairs

Type: array<SpriteWidget>


Default value, index 0:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.75
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Cross1'

Default value, index 1:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.75
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Cross2'

Default value, index 10:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.6
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Bracket1'

Default value, index 11:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.6
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Bracket2'

Default value, index 12:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.4
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Circle1'

Default value, index 13:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.4
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Circle2'

Default value, index 14:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.75
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Cross3'

Default value, index 15:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.75
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Cross4'

Default value, index 16:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.75
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Cross5'

Default value, index 17:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.75
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Dot'

Default value, index 18:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.6
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Pointer'

Default value, index 19:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.7
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Triad1'

Default value, index 20:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.7
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Triad2'

Default value, index 21:

Member Value
DrawPivot DP_MiddleMiddle
PosX 0.5
PosY 0.5
RenderStyle STY_Alpha
Scale 1.0
TextureCoords
Member Value
X2 64
Y2 64
TextureScale 0.7
Tints[0]
Member Value
A 255
B 255
G 255
R 255
Tints[1]
Member Value
A 255
B 255
G 255
R 255
WidgetTexture Texture'Crosshairs.HUD.Crosshair_Triad3'

DoCropping

Type: bool


Emphasized

Type: byte

Array size: 4


InstrDelta

Type: float


InstrRate

Type: float


InstructionFontFont

Type: Font


InstructionFontName

Type: string

Modifiers: localized


Default value: "UT2003Fonts.jFontMono800x600"

InstructionKeyText

Type: string


InstructionText

Type: string


InstructTextBorderX

Type: float


Default value: 10.0

InstructTextBorderY

Type: float


Default value: 10.0

LevelActionFontName

Type: string

Modifiers: localized


Default value: "UT2003Fonts.FontMedium"

LevelActionLoading

Type: string

Modifiers: localized


Default value: "LOADING..."

LevelActionPaused

Type: string

Modifiers: localized


Default value: "PAUSED"

LocalMessages

Type: HudLocalizedMessage

Array size: 8

Modifiers: transient


PassStyle

Type: Actor.ERenderStyle

Modifiers: transient

For debugging.

TeamIndex

Type: int

Modifiers: transient


text

Type: string

Modifiers: localized


VoteMenuClass

Type: class<Actor>


Internal variables

AtMenus

Type: string

Modifiers: localized


Default value: "Press [ESC] to close menu"

bHideWeaponName

Type: bool

Modifiers: globalconfig


bIsCinematic

Type: bool


bShowTargeting

Type: bool

Modifiers: transient


bUseCustomWeaponCrosshairs

Type: bool

Modifiers: globalconfig


Default value: True

bUsingCustomHUDColor

Type: bool


CustomHUDColor

Type: Object.Color

Modifiers: globalconfig


DamageFlash

Type: Object.Color

Array size: 4


DamageTime

Type: float

Array size: 4


FontsPrecached

Type: byte


InitialViewingString

Type: string

Modifiers: localized


Default value: "Press Fire to View a different Player"

LastWeaponName

Type: string


LocationDot

Type: Material


Default value: Material'HudContent.Generic.HUD'

NowViewing

Type: string

Modifiers: localized


Default value: "Now viewing"

ScoreText

Type: string

Modifiers: localized


Default value: "Score"

TargetingLocation

Type: Object.Vector

Modifiers: transient


TargetingSize

Type: float

Modifiers: transient


TargetMaterial

Type: Material


Default value: Material'InterfaceContent.Hud.fbBombFocus'

WaitingToSpawn

Type: string

Modifiers: localized


Default value: "Press [Fire] to join the match!"

WeaponDrawColor

Type: Object.Color


WeaponDrawTimer

Type: float


WonMatchPostFix

Type: string

Modifiers: localized


Default value: " won the match!"

WonMatchPrefix

Type: string

Modifiers: localized


YouveLostTheMatch

Type: string

Modifiers: localized


Default value: "You've lost the match."

YouveWonTheMatch

Type: string

Modifiers: localized


Default value: "You've won the match!"

G15 variables

These variables were added in the UT2004 v3372 "G15" patch to control output to the keyboard's LCD screen.

LastLCDUpdateTime

Type: float


LCDUpdateFreq

Type: float


Default value: 1.0

LCDDisplayMode

Type: int

Modifiers: config


Default value: 2

LCDClassStr

Type: string

Array size: 8

Modifiers: config


Default value, index 0: "Rocket Launcher"

Default value, index 1: "Flak Cannon"

Default value, index 2: "Shock Rifle"

Default value, index 3: "Link Gun"

Default value, index 4: "Minigun"

Default value, index 5: "BIO-Rifle"

Default value, index 6: "Lightning Gun"

Default value, index 7: "Sniper Rifle"

LCDDescStr

Type: string

Array size: 8

Modifiers: config


Default value, index 0: "Rockets:"

Default value, index 1: "Flak:"

Default value, index 2: "Shock:"

Default value, index 3: "Link:"

Default value, index 4: "Mini:"

Default value, index 5: "BIO:"

Default value, index 6: "LG:"

Default value, index 7: "Sniper:"

Default values

Property Value
FontArrayNames[0] "UT2003Fonts.FontEurostile37"
FontArrayNames[1] "UT2003Fonts.FontEurostile29"
FontArrayNames[2] "UT2003Fonts.FontEurostile24"
FontArrayNames[3] "UT2003Fonts.FontEurostile21"
FontArrayNames[4] "UT2003Fonts.FontEurostile17"
FontArrayNames[5] "UT2003Fonts.FontEurostile14"
FontArrayNames[6] "UT2003Fonts.FontEurostile12"
FontArrayNames[7] "UT2003Fonts.FontEurostile9"
FontArrayNames[8] "UT2003Fonts.FontSmallText"
FontScreenWidthMedium[0] 2048
FontScreenWidthMedium[1] 1600
FontScreenWidthMedium[2] 1280
FontScreenWidthMedium[3] 1024
FontScreenWidthMedium[4] 800
FontScreenWidthMedium[5] 640
FontScreenWidthMedium[6] 512
FontScreenWidthMedium[7] 400
FontScreenWidthMedium[8] 320
FontScreenWidthSmall[0] 4096
FontScreenWidthSmall[1] 3200
FontScreenWidthSmall[2] 2560
FontScreenWidthSmall[3] 2048
FontScreenWidthSmall[4] 1600
FontScreenWidthSmall[5] 1280
FontScreenWidthSmall[6] 1024
FontScreenWidthSmall[7] 800
FontScreenWidthSmall[8] 640
ProgressFontName "UT2003Fonts.FontMedium"

Enums

EScaleMode

SM_None 
SM_Up 
SM_Down 
SM_Left 
SM_Right 

Structs

DigitSet

Modifiers: native

Material DigitTexture 
Object.IntBox TextureCoords[11]  
0-9, 11th element is negative sign

HudLocalizedMessage

Modifiers: native

class<LocalMessage> Message 
string StringMessage 
int Switch 
PlayerReplicationInfo RelatedPRI 
PlayerReplicationInfo RelatedPRI2 
Object OptionalObject 
float EndOfLife 
float LifeTime 
Font StringFont 
Object.Color DrawColor 
Object.EDrawPivot DrawPivot 
LocalMessage.EStackMode StackMode 
float PosX 
float PosY 
float DX 
float DY 
bool Drawn 

NumericWidget

Modifiers: native

Actor.ERenderStyle RenderStyle 
int MinDigitCount 
float TextureScale 
Object.EDrawPivot DrawPivot 
float PosX 
float PosY 
int OffsetX 
int OffsetY 
Object.Color Tints[2]  
int bPadWithZeroes 
int Value 

SpriteWidget

Modifiers: native

Material WidgetTexture 
Actor.ERenderStyle RenderStyle 
Object.IntBox TextureCoords 
float TextureScale 
Object.EDrawPivot DrawPivot 
float PosX 
float PosY 
int OffsetX 
int OffsetY 
EScaleMode ScaleMode 
float Scale 
Object.Color Tints[2]  

Functions

Static functions

GetTeamColor

static function Object.Color GetTeamColor (byte TeamNum)


Native functions

DrawNumericWidget

native simulated function DrawNumericWidget (Canvas C, out NumericWidget W, out DigitSet D)


DrawSpriteWidget

native simulated function DrawSpriteWidget (Canvas C, out SpriteWidget W)


Events

PostBeginPlay

event PostBeginPlay ()

Overrides: Hud.PostBeginPlay


PostRender

simulated event PostRender (Canvas Canvas)

Overrides: Hud.PostRender

Only in UT2004 v3372 "G15" patch. Periodically updates the keyboard LCD display as specified by LCDUpdateFreq.

Tick

simulated event Tick (float deltaTime)

Overrides: Actor.Tick


G15 exec functions

These are only available in the UT2004 v3372 "G15" patch.

LCDMode

exec function LCDMode (int newMode)


NextLCDMode

exec function NextLCDMode ()


PrevLCDMode

exec function PrevLCDMode ()


Other instance functions

See HudBase instance functions.