X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_player.pas;h=23f38ffd70a4916bbdde1d67bd417bf7d1d9ba3d;hb=77198ca95ad9fc6b65b4fb1569fb55deb968a367;hp=f9de6195596b43fa555a80dcbff9ba1d6c241388;hpb=85f0d06ec81bc2e66f235f87cf5c6844487b26c6;p=d2df-sdl.git diff --git a/src/game/g_player.pas b/src/game/g_player.pas index f9de619..23f38ff 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -314,6 +314,7 @@ type procedure DrawPickup(); procedure DrawRulez(); procedure DrawAim(); + procedure DrawIndicator(); procedure DrawBubble(); procedure DrawGUI(); procedure Update(); virtual; @@ -551,6 +552,7 @@ var gFly: Boolean = False; gAimLine: Boolean = False; gChatBubble: Byte = 0; + gPlayerIndicator: Boolean = True; gNumBots: Word = 0; gLMSPID1: Word = 0; gLMSPID2: Word = 0; @@ -2326,6 +2328,25 @@ begin inherited; end; +procedure TPlayer.DrawIndicator(); +var + indX, indY: Integer; + indW, indH: Word; + ID: DWORD; +begin + if FAlive then + begin + indX := FObj.X+FObj.Rect.X; + indY := FObj.Y - 12; + if g_Texture_Get('TEXTURE_PLAYER_INDICATOR', ID) then + begin + e_GetTextureSize(ID, @indW, @indH); + e_Draw(ID, indX + indW div 2, indY, 0, True, False); + end; + end; + //e_TextureFontPrint(indX, indY, FName, gStdFont); // Shows player name overhead +end; + procedure TPlayer.DrawBubble(); var bubX, bubY: Integer;