Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 | UnrealScript Documentation |
previous class next class | frames no frames |