Created
January 7, 2014 00:46
-
-
Save dariusk/8292742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//if the merc is dead | |
if( IsMercDead( gbCurrentSoldier ) ) | |
{ | |
//shade the face red, (to signif that he is dead) | |
hFaceHandle->pShades[ 0 ] = Create16BPPPaletteShaded( hFaceHandle->pPaletteEntry, DEAD_MERC_COLOR_RED, DEAD_MERC_COLOR_GREEN, DEAD_MERC_COLOR_BLUE, TRUE ); | |
//get the face object | |
GetVideoObject(&hFaceHandle, guiFace); | |
//set the red pallete to the face | |
SetObjectHandleShade( guiFace, 0 ); | |
//Blt face to screen | |
BltVideoObject(FRAME_BUFFER, hFaceHandle, 0,FACE_X, FACE_Y, VO_BLT_SRCTRANSPARENCY,NULL); | |
//if the merc is dead, display it | |
DrawTextToScreen(AimPopUpText[AIM_MEMBER_DEAD], FACE_X+1, FACE_Y+107, FACE_WIDTH, FONT14ARIAL, 145, FONT_MCOLOR_BLACK, FALSE, CENTER_JUSTIFIED ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment