# SpatialFear.SFHUD

Spatial Fear
Name: SFHUD
Description: SpatialFear main HUD class.
Author: Markus Nuebel
Modified By: Chris Rogers

Extends:
Modifiers:
Source code

    SpatialFear.SFHUD

%%

## Constants

%function_comment% | constScreenMaxX | = | 1280
%function_comment% | constScreenMaxY | = | 1024

## Variables

%function_comment% |  |  | bool | bFirstTime
%function_comment% | globalconfig |  | int | CrosshairCountSF
%function_comment% | globalconfig |  | string | CrossHairsSF[20]
%function_comment% |  |  | Texture | m_arTexArmor[6]
%function_comment% |  |  | bool | m_bHideStatus
%function_comment% |  |  | bool | m_bItemBeltPopulated
%function_comment% |  |  | bool | m_bShowCommunicationTip
%function_comment% |  |  | class<Actor> | m_clsActorTipTrigger
%function_comment% |  |  | class<Actor> | m_clsCommunicationTip
%function_comment% |  |  | class<UWindowWindow> | m_clsWindow
%function_comment% |  |  | EHealthState | m_eHealthState
%function_comment% |  |  | float | m_fCommTipDistance
%function_comment% |  |  | float | m_fFastRot
%function_comment% |  |  | float | m_fFastRotation
%function_comment% |  |  | float | m_fFocusDistance
%function_comment% |  |  | float | m_fHUDScale
%function_comment% |  |  | SFFontInfo | m_Fonts
%function_comment% |  |  | float | m_fSlowRot
%function_comment% |  |  | float | m_fSlowRotation
%function_comment% |  |  | name | m_nameTipActor
%function_comment% |  |  | int | m_nCanvasClipX
%function_comment% |  |  | int | m_nCanvasClipY
%function_comment% |  |  | int | m_nChemUGX
%function_comment% |  |  | int | m_nChemUGY
%function_comment% |  |  | int | m_nComIconHeight
%function_comment% |  |  | int | m_nComIconWidth
%function_comment% |  |  | int | m_nComUGX
%function_comment% |  |  | int | m_nComUGY
%function_comment% |  |  | int | m_nFireUGX
%function_comment% |  |  | int | m_nFireUGY
%function_comment% |  |  | int | m_nRadUGX
%function_comment% |  |  | int | m_nRadUGY
%function_comment% |  |  | int | m_nTicksPassed
%function_comment% |  |  | int | m_nUpgradeIconHeight
%function_comment% |  |  | int | m_nUpgradeIconWidth
%function_comment% |  |  | int | m_nUseKeyHintCounter
%function_comment% |  |  | int | m_nUseKeyIconHeight
%function_comment% |  |  | int | m_nUseKeyIconWidth
%function_comment% |  |  | int | m_nUseKeyUGX
%function_comment% |  |  | int | m_nUseKeyUGY
%function_comment% |  |  | int | m_nWinHeight
%function_comment% |  |  | int | m_nWinLeft
%function_comment% |  |  | int | m_nWinTop
%function_comment% |  |  | int | m_nWinWidth
%function_comment% |  |  | SFCommunication | m_oAvailableCom
%function_comment% |  |  | SFCommunication | m_oComWaitingLine
%function_comment% |  |  | SFAnimatedTextureHelper | m_oGreenHelper
%function_comment% |  |  | SFHUDWindowMgr | m_oHUDWndMgr
%function_comment% |  |  | SFPickupTracker | m_oPickupTracker
%function_comment% |  |  | SFAnimatedTextureHelper | m_oRedHelper
%function_comment% |  |  | SFAnimatedTextureHelper | m_oYellowHelper
%function_comment% |  |  | Region | m_ScaledClippingRegion
%function_comment% |  |  | string | m_strCommunicationTip
%function_comment% |  |  | string | m_strNoText
%function_comment% |  |  | string | m_strYesText
%function_comment% |  |  | Texture | m_texGreen
%function_comment% |  |  | Texture | m_texRed
%function_comment% |  |  | Texture | m_texYellow
%function_comment% |  |  | SFIconWindow | m_winChemicalUpgrade
%function_comment% |  |  | SFIconWindow | m_winComAvailable
%function_comment% |  |  | SFIconWindow | m_winFireUpgrade
%function_comment% | transient |  | UWindowWindow | m_winMain
%function_comment% |  |  | SFIconWindow | m_winRadUpgrade
%function_comment% |  |  | SFIconWindow | m_winUseKeyNear

## Enums

%function_comment% | EArmorState |  | ARMOR_Level5, ARMOR_Level4, ARMOR_Level3, ARMOR_Level2, ARMOR_Level1, ARMOR_Level0, ARMOR_Undefined,
%function_comment% | EDamageProtection |  | DP_None, DP_Gravity, DP_Ballistic, DP_Chemical, DP_Fire, DP_Radiation,
%function_comment% | EHealthState |  | HEALTH_GreenFast, HEALTH_GreenSlow, HEALTH_YellowFast, HEALTH_YellowSlow, HEALTH_RedFast, HEALTH_RedSlow, HEALTH_Critical, HEALTH_Undefined,

## Structs

%function_comment% | Region | { var() int X; var() int Y; var() int W; var() int H; };

## Functions

|  |  | activateItem ()
|  |  | CancelComm ()
|  |  | ChangeCrosshair (int d)
|  |  | Destroyed ()
|  |  | drawActorTip (Canvas Canvas)
|  |  | DrawAmmo (Canvas Canvas)
|  |  | drawArmorStatus (Canvas Canvas)
|  |  | DrawClippedActor (Canvas C, float XB, float YB, float X, float Y, Actor A, bool WireFrame, rotator RotOffset, vector LocOffset)
|  |  | drawCommunicationTip (Canvas Canvas)
|  |  | DrawCrossHair (canvas Canvas, int X, int Y)
|  |  | DrawDigit (Canvas Canvas, int d, int Step, float UpScale, out byte bMinus)
|  |  | drawFlashlightStatus (Canvas Canvas)
|  |  | DrawFragCount (Canvas Canvas)
|  |  | DrawGameSynopsis (Canvas Canvas)
|  |  | drawHealthStatus (Canvas Canvas)
|  | bool | DrawIdentifyInfo (canvas Canvas)
|  | bool | DrawSpeechArea (Canvas Canvas, float XL, float YL)
|  |  | DrawStatus (Canvas Canvas)
|  | bool | drawUseKeyHint (Canvas Canvas)
|  |  | DrawWeapons (Canvas Canvas)
|  | EArmorState | getArmorState ()
|  | Actor | getFocusedActor (class<Actor> clsActorType)
|  | EHealthState | getHealthState ()
|  | Actor | getRadiusActorByClass (class<Actor> clsActorType)
|  | Actor | getVisibleActorByClass (class<Actor> clsActorType)
|  | Actor | getVisibleActorByName (name ActorName)
|  |  | hideAvailableCom ()
|  |  | hideAvailableUseKey ()
|  |  | hideWeaponDesc ()
|  |  | HUDSetup (canvas canvas)
|  |  | insertIntoBelt (SFPickup oPickup)
|  | Texture | LoadCrosshair (int c)
|  | vector | mapLocationToScreen (vector vecTargetPos, Canvas Canvas, float fTextWidth)
|  |  | Message (PlayerReplicationInfo PRI, coerce string Msg, name MsgType)
|  |  | nextItem ()
|  | bool | openWindow (class<UWindowWindow> clsWindow, int nLeft, int nTop, int nWidht, int nHeight)
|  |  | passiveItem ()
|  |  | PauseComm ()
|  |  | playCommunication ()
|  |  | playCommunicationDirect (SFCommunication oComm)
|  |  | populateItemBelt ()
|  |  | PostBeginPlay ()
|  |  | PostRender (canvas Canvas)
|  |  | prevItem ()
|  |  | queueCommunication (SFCommunication oComm)
|  |  | removeFromActiveItemBelt (SFPickup oItem)
|  |  | removeItemFromBelt (SFPickup oItem)
|  |  | ResumeComm (bool bYesNo)
|  | bool | setupWindow ()
|  |  | SFShowAll ()
|  |  | showAvailableCom ()
|  |  | showAvailableUseKey ()
|  |  | showItemPickup (Inventory oItem)
|  |  | showWeaponDesc (TournamentWeapon oWeapon)
|  |  | showWeaponPickup (TournamentWeapon oWeapon)
|  |  | showWeaponSelection (SFPickup oPickup)
|  |  | Tick (float DeltaTime)

## Default properties

    {
         m_fFastRot=1000.000000
         m_fSlowRot=6000.000000
         m_fFastRotation=12.000000
         m_fSlowRotation=5.000000
         CrosshairCountSF=9
         CrossHairsSF(0)="SFResource1.crshair01"
         CrossHairsSF(1)="SFResource1.crshair03"
         CrossHairsSF(2)="SFResource1.crshair06"
         CrossHairsSF(3)="SFResource1.crshair07"
         CrossHairsSF(4)="SFResource1.crshair08"
         CrossHairsSF(5)="SFResource1.crshair11"
         CrossHairsSF(6)="SFResource1.crshair15"
         CrossHairsSF(7)="SFResource1.crshair22"
         CrossHairsSF(8)="SFResource1.crshair23"
         m_fFocusDistance=200.000000
         m_fCommTipDistance=400.000000
         m_clsActorTipTrigger=Class'SpatialFear.SFUseKeyTrigger'
         m_nUpgradeIconWidth=64
         m_nUpgradeIconHeight=64
         m_nChemUGX=24
         m_nChemUGY=900
         m_nFireUGX=78
         m_nFireUGY=920
         m_nRadUGX=132
         m_nRadUGY=900
         m_nComUGX=64
         m_nComUGY=802
         m_nComIconWidth=128
         m_nComIconHeight=128
         m_nUseKeyUGX=610
         m_nUseKeyUGY=850
         m_nUseKeyIconWidth=64
         m_nUseKeyIconHeight=64
         m_strYesText="Yes"
         m_strNoText="No"
         bFirstTime=True
    }

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:40 PM
Created with UnCodeX