'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:
@@ -1,4 +1,6 @@
|
||||
Changes towards version 0.3:
|
||||
- 'CREW' and 'BATT' instead of icons in combat screen when using
|
||||
PC-style menus (bug #308); from Paxtez
|
||||
- New shipyard SCRAP system with scrapping confirmation
|
||||
(bug #413); from Paxtez
|
||||
- Syreen ships become available when Talana says they are
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1007 B |
Binary file not shown.
|
After Width: | Height: | Size: 997 B |
@@ -1,4 +1,6 @@
|
||||
status.0.png 0 0 11 4
|
||||
status.1.png 0 0 -6 4
|
||||
status.0.png 0 0 8 4
|
||||
status.1.png 0 0 -3 4
|
||||
status.2.png 0 0 16 23
|
||||
status.3.png 0 0 -1 -1
|
||||
status.4.png 0 0 9 3
|
||||
status.5.png 0 0 11 3
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "starcon.h"
|
||||
#include "options.h"
|
||||
|
||||
void
|
||||
DrawCrewFuelString (COORD y, SIZE state)
|
||||
@@ -28,11 +29,17 @@ DrawCrewFuelString (COORD y, SIZE state)
|
||||
if (state == 0)
|
||||
{
|
||||
Stamp.origin.x = CREW_XOFFS + (STAT_WIDTH >> 1) + 6;
|
||||
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;
|
||||
if (optWhichMenu == OPT_PC)
|
||||
Stamp.frame = SetAbsFrameIndex (status, 5);
|
||||
else
|
||||
Stamp.frame = SetAbsFrameIndex (status, 1);
|
||||
if (state >= 0)
|
||||
DrawStamp (&Stamp);
|
||||
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user