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

Engine.HUD


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
//=============================================================================
// HUD: Superclass of the heads-up display.
//=============================================================================
class HUD expands Actor
    abstract
    intrinsic;

//=============================================================================
// Variables.

var globalconfig int HudMode;   
var globalconfig int Crosshair;
var() class<menu> MainMenuType;
var Menu MainMenu;

//=============================================================================
// Status drawing.

simulated event PreRender( canvas Canvas );
simulated event PostRender( canvas Canvas );

simulated event RenderOverlays( canvas Canvas )
{
    local Pawn P;

    // Have the owner's weapon draw its first person view
    P = Pawn(Owner);
    if ( (P != None) && (P.Weapon != None) )
        P.Weapon.RenderOverlays(Canvas);
}

simulated function InputNumber(byte F);
simulated function ChangeHud(int d);
simulated function ChangeCrosshair(int d);
simulated function DrawCrossHair( canvas Canvas, int StartX, int StartY);

simulated function PlayReceivedMessage(string[255] S, string[20] PName, ZoneInfo PZone)
{
    PlayerPawn(Owner).ClientMessage(S);
    PlayerPawn(Owner).PlayBeepSound();
}

// DisplayMessages is called by the Console in PostRender.
// It offers the HUD a chance to deal with messages instead of the
// Console.  Returns true if messages were dealt with.
simulated function bool DisplayMessages(canvas Canvas)
{
    return false;
}

defaultproperties
{
     bHidden=True
     RemoteRole=ROLE_SimulatedProxy
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:52.039 - Created with UnCodeX