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

Gameplay.SpectatorHUD


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
class SpectatorHUD extends DefaultHUD;

simulated function DrawHUD( canvas C )
{
	local PlayerCharacterController PC;
	local float textWidth, textHeight;

	PC = PlayerCharacterController(PlayerOwner);
	if (PC == None)
		return;

	C.SetDrawColor(255, 255, 255);

	// print spectator help
	C.Font = SmallFont;
	C.TextSize("W", textWidth, textHeight);
	drawJustifiedShadowedText(C, "Press fire to start, press jetpack to view other players", 0, C.ClipY * 0.01, C.ClipX, C.ClipY * 0.01 + textHeight, 1);

	// print the name of the player we are viewing
	if (Pawn(PC.ViewTarget) != None)
	{
		C.Font = MedFont;
		
		if (Pawn(PC.ViewTarget).PlayerReplicationInfo != None)
			drawJustifiedShadowedText(C, "Viewing " $ Pawn(PC.ViewTarget).PlayerReplicationInfo.PlayerName, 0, C.ClipY * 0.95, C.ClipX, C.ClipY, 1);
	}
	else
	{
		drawJustifiedShadowedText(C, "Spectator", 0, C.ClipY * 0.95, C.ClipX, C.ClipY, 1);
	}
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 15:53:12.000 - Creation time: st 23.5.2018 00:10:47.229 - Created with UnCodeX