'CREW' and 'BATT' instead of icons in combat screen when using PC menus

(bug #308); from Paxtez


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1154 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-08-30 16:18:35 +00:00
parent 85450f2506
commit 7f6d392126
6 changed files with 22 additions and 10 deletions
+11 -6
View File
@@ -17,6 +17,7 @@
*/
#include "starcon.h"
#include "options.h"
void
DrawCrewFuelString (COORD y, SIZE state)
@@ -28,12 +29,18 @@ DrawCrewFuelString (COORD y, SIZE state)
if (state == 0)
{
Stamp.origin.x = CREW_XOFFS + (STAT_WIDTH >> 1) + 6;
Stamp.frame = SetAbsFrameIndex (status, 0);
if (optWhichMenu == OPT_PC)
Stamp.frame = SetAbsFrameIndex (status, 4);
else
Stamp.frame = SetAbsFrameIndex (status, 0);
DrawStamp (&Stamp);
}
Stamp.origin.x = ENERGY_XOFFS + (STAT_WIDTH >> 1) - 5;
Stamp.frame = SetAbsFrameIndex (status, 1);
if (optWhichMenu == OPT_PC)
Stamp.frame = SetAbsFrameIndex (status, 5);
else
Stamp.frame = SetAbsFrameIndex (status, 1);
if (state >= 0)
DrawStamp (&Stamp);
else
@@ -220,9 +227,7 @@ InitShipStatus (STARSHIPPTR StarShipPtr, PRECT pClipRect)
locString = SetAbsStringTableIndex (SIPtr->race_strings, 1);
DrawShipNameString (
(UNICODE *)GetStringAddress (locString),
GetStringLength (locString),
y
);
GetStringLength (locString),y);
{
UNICODE buf[3];
@@ -247,7 +252,7 @@ InitShipStatus (STARSHIPPTR StarShipPtr, PRECT pClipRect)
Text.align = ALIGN_CENTER;
Text.baseline.x = STATUS_WIDTH >> 1;
Text.baseline.y = y + GAUGE_YOFFS + 9;
Text.baseline.y = y + GAUGE_YOFFS + 3;
SetContextForeGroundColor (BLACK_COLOR);
font_DrawText (&Text);
+5 -2
View File
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <string.h>
#include "starcon.h"
#include "options.h"
static void
CaptainsWindow (CAPTAIN_STUFFPTR CSPtr, COORD y, register ELEMENT_FLAGS
@@ -115,7 +116,9 @@ DrawBattleCrewAmount (BOOLEAN CountPlayer)
TEXT t;
UNICODE buf[10];
t.baseline.x = BATTLE_CREW_X;
t.baseline.x = BATTLE_CREW_X + 2;
if (optWhichMenu == OPT_PC)
t.baseline.x -= 8;
t.baseline.y = BATTLE_CREW_Y - SAFE_Y;
t.align = ALIGN_LEFT;
t.pStr = buf;
@@ -123,7 +126,7 @@ DrawBattleCrewAmount (BOOLEAN CountPlayer)
r.corner.x = t.baseline.x;
r.corner.y = t.baseline.y - 5;
r.extent.width = 6 * MAX_CREW_DIGITS + 1;
r.extent.width = 6 * MAX_CREW_DIGITS + 6;
r.extent.height = 5;
wsprintf (buf, "%u",