From 62d14c57f0cdc49e9c49567131583bac8c986369 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Fri, 8 Jan 2016 11:09:13 -0500 Subject: [PATCH] Added special target text for Kline. --- LICENSES | 1 + gfx/klineText.png | Bin 0 -> 307 bytes src/defs.h | 2 ++ src/game.cpp | 4 ++++ src/missions.cpp | 1 + src/resources.cpp | 1 + 6 files changed, 9 insertions(+) create mode 100644 gfx/klineText.png diff --git a/LICENSES b/LICENSES index f725d70..7232dec 100644 --- a/LICENSES +++ b/LICENSES @@ -85,6 +85,7 @@ License: CC BY-SA 3.0 ------------------------------------------------------------------------ +gfx/klineText.png gfx/phoebeText.png gfx/sidText.png gfx/ursulaText.png diff --git a/gfx/klineText.png b/gfx/klineText.png new file mode 100644 index 0000000000000000000000000000000000000000..8b93e3aa0d8c97521ae3b9c3a3155db5e3d0b87d GIT binary patch literal 307 zcmV-30nGl1P)H6bPO{m}ZuVR@ZtkB< z=FChnUry%#*@YwVr1#mQe^q>5plKS$afIu-RR2GeBuQx77C{jF#M4YG)*y06N;jMuItC4wrxY#br4071NA$sX_}M>g7vd3W3^!z zlnCrNlx11y`yRgU-)97R7V7oQ;GVTC%eg~$90&6}LzZP$H%&t$GQihRd7j^Y@GJMR zd#dXiQ53P-wrx~Zg>_xQ5f@5P6vS~%clOyh7dYkexB;$bc;jFZ)ffN(002ovPDHLk FV1n(Ih#UX_ literal 0 HcmV?d00001 diff --git a/src/defs.h b/src/defs.h index 3deea94..07b297a 100644 --- a/src/defs.h +++ b/src/defs.h @@ -379,6 +379,7 @@ enum { SP_INDICATOR_SID, SP_INDICATOR_PHOEBE, SP_INDICATOR_URSULA, + SP_INDICATOR_KLINE, SP_MAX }; @@ -560,6 +561,7 @@ enum { TS_TARGET, TS_TARGET_SID, TS_TARGET_PHOEBE, + TS_TARGET_KLINE, TS_CASH_T, TS_OBJECTIVES_T, TS_TIME_T, diff --git a/src/game.cpp b/src/game.cpp index 72f8027..6384ec5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1647,6 +1647,8 @@ static void game_doArrow(int i) indicator = SP_INDICATOR_PHOEBE; else if (i == ALIEN_URSULA) indicator = SP_INDICATOR_URSULA; + else if (i == ALIEN_KLINE) + indicator = SP_INDICATOR_KLINE; else if (i == engine.targetIndex) indicator = SP_INDICATOR_TARGET; @@ -1835,6 +1837,8 @@ static void game_doHud() screen_blitText(TS_TARGET_SID); else if (engine.targetIndex == ALIEN_PHOEBE) screen_blitText(TS_TARGET_PHOEBE); + else if (engine.targetIndex == ALIEN_KLINE) + screen_blitText(TS_TARGET_KLINE); else screen_blitText(TS_TARGET); diff --git a/src/missions.cpp b/src/missions.cpp index 6eaefeb..c5d3e1c 100644 --- a/src/missions.cpp +++ b/src/missions.cpp @@ -806,6 +806,7 @@ void missionBriefScreen() gfx_createTextObject(TS_TARGET, "Target", screen->w * 11 / 16, screen->h - 50, FONT_WHITE); gfx_createTextObject(TS_TARGET_SID, "Sid", screen->w * 11 / 16 + 27, screen->h - 50, FONT_WHITE); gfx_createTextObject(TS_TARGET_PHOEBE, "Phoebe", screen->w * 11 / 16, screen->h - 50, FONT_WHITE); + gfx_createTextObject(TS_TARGET_KLINE, "Kline", screen->w * 11 / 16 + 9, screen->h - 50, FONT_WHITE); gfx_createTextObject(TS_CASH_T, "Cash: $", 25, 20, FONT_WHITE); gfx_createTextObject(TS_OBJECTIVES_T, "Objectives Remaining:", screen->w - 250, 20, FONT_WHITE); gfx_createTextObject(TS_TIME_T, "Time Remaining - ", screen->w / 2 - 140, 20, FONT_WHITE); diff --git a/src/resources.cpp b/src/resources.cpp index 9cc7cdf..6ff1229 100644 --- a/src/resources.cpp +++ b/src/resources.cpp @@ -231,6 +231,7 @@ void loadGameGraphics() gfx_sprites[SP_INDICATOR_SID] = gfx_loadImage("gfx/sidText.png"); gfx_sprites[SP_INDICATOR_PHOEBE] = gfx_loadImage("gfx/phoebeText.png"); gfx_sprites[SP_INDICATOR_URSULA] = gfx_loadImage("gfx/ursulaText.png"); + gfx_sprites[SP_INDICATOR_KLINE] = gfx_loadImage("gfx/klineText.png"); gfx_sprites[SP_ESCAPE_POD] = gfx_loadImage("gfx/pod.png"); gfx_sprites[SP_ORE] = gfx_loadImage("gfx/ore1.png"); gfx_sprites[SP_ORE_2] = gfx_loadImage("gfx/ore2.png");