Some color-related cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2462 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -52,7 +52,8 @@ DrawSISFrame (void)
|
|||||||
|
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
r.corner.x = 0;
|
r.corner.x = 0;
|
||||||
r.corner.y = 0;
|
r.corner.y = 0;
|
||||||
r.extent.width = SIS_ORG_X + SIS_SCREEN_WIDTH + 1;
|
r.extent.width = SIS_ORG_X + SIS_SCREEN_WIDTH + 1;
|
||||||
@@ -80,7 +81,7 @@ DrawSISFrame (void)
|
|||||||
r.extent.height = SIS_SCREEN_HEIGHT + 2;
|
r.extent.height = SIS_SCREEN_HEIGHT + 2;
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
TRUE, BLACK_COLOR);
|
TRUE, BLACK_COLOR);
|
||||||
|
|
||||||
r.corner.y = 0;
|
r.corner.y = 0;
|
||||||
@@ -89,15 +90,15 @@ DrawSISFrame (void)
|
|||||||
r.corner.x = SIS_ORG_X;
|
r.corner.x = SIS_ORG_X;
|
||||||
r.extent.width = SIS_SCREEN_WIDTH - 69;
|
r.extent.width = SIS_SCREEN_WIDTH - 69;
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0xE), 0x54),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x0E), 0x54),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1, 0x1C), 0x4E),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x01, 0x1C), 0x4E),
|
||||||
TRUE, BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
TRUE, BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
|
|
||||||
r.extent.width = 57;
|
r.extent.width = 57;
|
||||||
r.corner.x = SIS_ORG_X + SIS_SCREEN_WIDTH - 57;
|
r.corner.x = SIS_ORG_X + SIS_SCREEN_WIDTH - 57;
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0xE), 0x54),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x0E), 0x54),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1, 0x1C), 0x4E),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x01, 0x1C), 0x4E),
|
||||||
TRUE, BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
TRUE, BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
|
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
@@ -112,7 +113,8 @@ DrawSISFrame (void)
|
|||||||
r.corner.x = SCREEN_WIDTH - 1;
|
r.corner.x = SCREEN_WIDTH - 1;
|
||||||
DrawPoint (&r.corner);
|
DrawPoint (&r.corner);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
||||||
r.corner.y = 1;
|
r.corner.y = 1;
|
||||||
r.extent.width = 1;
|
r.extent.width = 1;
|
||||||
r.extent.height = SAFE_Y + 8;
|
r.extent.height = SAFE_Y + 8;
|
||||||
@@ -147,7 +149,8 @@ DrawSISFrame (void)
|
|||||||
r.extent.height = (SCREEN_HEIGHT - 1) - r.corner.y;
|
r.extent.height = (SCREEN_HEIGHT - 1) - r.corner.y;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.corner.y = 1;
|
r.corner.y = 1;
|
||||||
r.extent.width = 1;
|
r.extent.width = 1;
|
||||||
r.extent.height = SAFE_Y + 8;
|
r.extent.height = SAFE_Y + 8;
|
||||||
|
|||||||
@@ -49,13 +49,13 @@ static int clock_task_func(void* data)
|
|||||||
DWORD cycle_index, delay_count;
|
DWORD cycle_index, delay_count;
|
||||||
COLOR cycle_tab[] =
|
COLOR cycle_tab[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0x14, 0x18), 0x5B),
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x14, 0x18), 0x5B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x6, 0x10, 0x16), 0x5C),
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x10, 0x16), 0x5C),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x3, 0xE, 0x14), 0x5D),
|
BUILD_COLOR (MAKE_RGB15 (0x03, 0x0E, 0x14), 0x5D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x2, 0xC, 0x11), 0x5E),
|
BUILD_COLOR (MAKE_RGB15 (0x02, 0x0C, 0x11), 0x5E),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1, 0xB, 0xF), 0x5F),
|
BUILD_COLOR (MAKE_RGB15 (0x01, 0x0B, 0x0F), 0x5F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1, 0x9, 0xD), 0x60),
|
BUILD_COLOR (MAKE_RGB15 (0x01, 0x09, 0x0D), 0x60),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x0, 0x7, 0xB), 0x61),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x07, 0x0B), 0x61),
|
||||||
};
|
};
|
||||||
#define NUM_CYCLES (sizeof (cycle_tab) / sizeof (cycle_tab[0]))
|
#define NUM_CYCLES (sizeof (cycle_tab) / sizeof (cycle_tab[0]))
|
||||||
#define NUM_DELAYS (ONE_SECOND * 3 / 40) // 9 @ 120 ticks/second
|
#define NUM_DELAYS (ONE_SECOND * 3 / 40) // 9 @ 120 ticks/second
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ DrawConfirmationWindow (BOOLEAN answer)
|
|||||||
RECT r;
|
RECT r;
|
||||||
TEXT t;
|
TEXT t;
|
||||||
|
|
||||||
dark = BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F);
|
dark = BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F);
|
||||||
medium = BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19);
|
medium = BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19);
|
||||||
|
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
|
|||||||
@@ -312,8 +312,8 @@ credit_roll_task (void *data)
|
|||||||
|
|
||||||
strcnt = GetStringTableCount (CreditsTab);
|
strcnt = GetStringTableCount (CreditsTab);
|
||||||
|
|
||||||
TransColor = BUILD_COLOR (MAKE_RGB15 (0, 0, 0x10), 1);
|
TransColor = BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x10), 0x01);
|
||||||
TextBack = BUILD_COLOR (MAKE_RGB15 (0, 0, 0), 0);
|
TextBack = BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00);
|
||||||
TextFore = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F);
|
TextFore = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F);
|
||||||
|
|
||||||
LocalContext = CaptureContext (CreateContext ());
|
LocalContext = CaptureContext (CreateContext ());
|
||||||
@@ -719,7 +719,8 @@ Credits (BOOLEAN WithOuttakes)
|
|||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
SetContext (ScreenContext);
|
SetContext (ScreenContext);
|
||||||
SetContextClipRect (NULL_PTR);
|
SetContextClipRect (NULL_PTR);
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x0, 0x0, 0x0), 0x00));
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
fade_buf[0] = FadeAllToColor;
|
fade_buf[0] = FadeAllToColor;
|
||||||
XFormColorMap ((COLORMAPPTR)fade_buf, 0);
|
XFormColorMap ((COLORMAPPTR)fade_buf, 0);
|
||||||
|
|||||||
+19
-18
@@ -214,7 +214,8 @@ InitEncounter (void)
|
|||||||
t.align = ALIGN_CENTER;
|
t.align = ALIGN_CENTER;
|
||||||
|
|
||||||
SetContextFont (MicroFont);
|
SetContextFont (MicroFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
if (LOBYTE (GLOBAL (CurrentActivity)) == IN_HYPERSPACE)
|
if (LOBYTE (GLOBAL (CurrentActivity)) == IN_HYPERSPACE)
|
||||||
{
|
{
|
||||||
t.pStr = GAME_STRING (ENCOUNTER_STRING_BASE + 0);
|
t.pStr = GAME_STRING (ENCOUNTER_STRING_BASE + 0);
|
||||||
@@ -341,13 +342,13 @@ DrawFadeText (const UNICODE *str1, const UNICODE *str2, BOOLEAN fade_in,
|
|||||||
TEXT t1, t2;
|
TEXT t1, t2;
|
||||||
COLOR fade_cycle[] =
|
COLOR fade_cycle[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x1D),
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x1D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x9, 0x9, 0x9), 0x1E),
|
BUILD_COLOR (MAKE_RGB15 (0x09, 0x09, 0x09), 0x1E),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x6, 0x6, 0x6), 0x20),
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x06, 0x06), 0x20),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x5, 0x5, 0x5), 0x21),
|
BUILD_COLOR (MAKE_RGB15 (0x05, 0x05, 0x05), 0x21),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x4, 0x4, 0x4), 0x22),
|
BUILD_COLOR (MAKE_RGB15 (0x04, 0x04, 0x04), 0x22),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x3, 0x3, 0x3), 0x23),
|
BUILD_COLOR (MAKE_RGB15 (0x03, 0x03, 0x03), 0x23),
|
||||||
};
|
};
|
||||||
#define NUM_FADES (sizeof (fade_cycle) / sizeof (fade_cycle[0]))
|
#define NUM_FADES (sizeof (fade_cycle) / sizeof (fade_cycle[0]))
|
||||||
|
|
||||||
@@ -393,8 +394,8 @@ DrawFadeText (const UNICODE *str1, const UNICODE *str2, BOOLEAN fade_in,
|
|||||||
SleepThreadUntil (TimeIn + (ONE_SECOND / 20));
|
SleepThreadUntil (TimeIn + (ONE_SECOND / 20));
|
||||||
TimeIn = GetTimeCounter ();
|
TimeIn = GetTimeCounter ();
|
||||||
}
|
}
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA),
|
SetContextForeGroundColor (
|
||||||
0x08));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
font_DrawText (&t1);
|
font_DrawText (&t1);
|
||||||
font_DrawText (&t2);
|
font_DrawText (&t2);
|
||||||
}
|
}
|
||||||
@@ -438,14 +439,14 @@ UninitEncounter (void)
|
|||||||
SHIP_FRAGMENTPTR FragPtr;
|
SHIP_FRAGMENTPTR FragPtr;
|
||||||
COLOR fade_ship_cycle[] =
|
COLOR fade_ship_cycle[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x7, 0x00, 0x00), 0x2F),
|
BUILD_COLOR (MAKE_RGB15 (0x07, 0x00, 0x00), 0x2F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2D),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0xA), 0x27),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x0A), 0x27),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x14, 0x14), 0x25),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x14, 0x14), 0x25),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x14, 0x14), 0x25),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x14, 0x14), 0x25),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0xA), 0x27),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x0A), 0x27),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2A),
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2A),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
||||||
};
|
};
|
||||||
@@ -536,8 +537,8 @@ UninitEncounter (void)
|
|||||||
ship_s.frame = IncFrameIndex (
|
ship_s.frame = IncFrameIndex (
|
||||||
FragPtr->ShipInfo.icons);
|
FragPtr->ShipInfo.icons);
|
||||||
DrawStamp (&ship_s);
|
DrawStamp (&ship_s);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
|
|
||||||
GetStringContents (
|
GetStringContents (
|
||||||
@@ -588,8 +589,8 @@ UninitEncounter (void)
|
|||||||
t.align = ALIGN_RIGHT;
|
t.align = ALIGN_RIGHT;
|
||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x00, 0x00, 0x18), 0x50));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x18), 0x50));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
DeltaSISGauges (0, 0, j);
|
DeltaSISGauges (0, 0, j);
|
||||||
|
|
||||||
|
|||||||
+26
-20
@@ -91,9 +91,10 @@ ConfirmSaveLoad (STAMP *MsgStamp)
|
|||||||
}
|
}
|
||||||
DrawStarConBox (&r, 2,
|
DrawStarConBox (&r, 2,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
TRUE, BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
TRUE, BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x14, 0x14, 0x14), 0x0F));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x14, 0x14, 0x14), 0x0F));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,8 +241,8 @@ DrawDescriptionString (PMENU_STATE pMS, COUNT which_string, COUNT state)
|
|||||||
r.extent.width -= 2;
|
r.extent.width -= 2;
|
||||||
lf.baseline.x = r.corner.x + (r.extent.width >> 1) - 1;
|
lf.baseline.x = r.corner.x + (r.extent.width >> 1) - 1;
|
||||||
|
|
||||||
BackGround = BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09);
|
BackGround = BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09);
|
||||||
ForeGround = BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B);
|
ForeGround = BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -249,8 +250,8 @@ DrawDescriptionString (PMENU_STATE pMS, COUNT which_string, COUNT state)
|
|||||||
r.corner.y = 20;
|
r.corner.y = 20;
|
||||||
lf.baseline.x = r.corner.x + (r.extent.width >> 1);
|
lf.baseline.x = r.corner.x + (r.extent.width >> 1);
|
||||||
|
|
||||||
BackGround = BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2D);
|
BackGround = BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2D);
|
||||||
ForeGround = BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0x00), 0x7D);
|
ForeGround = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x00), 0x7D);
|
||||||
}
|
}
|
||||||
|
|
||||||
lf.baseline.y = r.corner.y + r.extent.height - 1;
|
lf.baseline.y = r.corner.y + r.extent.height - 1;
|
||||||
@@ -631,15 +632,15 @@ DrawCargo (COUNT redraw_state)
|
|||||||
UNICODE buf[40];
|
UNICODE buf[40];
|
||||||
COLOR cargo_color[] =
|
COLOR cargo_color[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (2, 14, 19), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x02, 0x0E, 0x13), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (25, 0x00, 0x00), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x19, 0x00, 0x00), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (3, 5, 30), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x03, 0x05, 0x1E), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 24, 0x00), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x18, 0x00), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (27, 27, 0x00), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x1B, 0x00), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (30, 13, 0x00), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x1E, 0x0D, 0x00), 0x00),
|
||||||
BUILD_COLOR (MAKE_RGB15 (20, 0x00, 20), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x14, 0x00, 0x14), 0x05),
|
||||||
BUILD_COLOR (MAKE_RGB15 (15, 0x00, 25), 0x00),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x19), 0x00),
|
||||||
};
|
};
|
||||||
|
|
||||||
r.extent.width = 23;
|
r.extent.width = 23;
|
||||||
@@ -696,7 +697,8 @@ ShowSummary (SUMMARY_DESC *pSD)
|
|||||||
r.corner.y = 139;
|
r.corner.y = 139;
|
||||||
r.extent.width = SIS_SCREEN_WIDTH - 4;
|
r.extent.width = SIS_SCREEN_WIDTH - 4;
|
||||||
r.extent.height = 7;
|
r.extent.height = 7;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -805,7 +807,8 @@ ShowSummary (SUMMARY_DESC *pSD)
|
|||||||
r.corner.y = t.baseline.y - SHIP_NAME_HEIGHT + 1;
|
r.corner.y = t.baseline.y - SHIP_NAME_HEIGHT + 1;
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x00, 0x10), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x00, 0x10), 0x01));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
}
|
}
|
||||||
@@ -817,14 +820,16 @@ ShowSummary (SUMMARY_DESC *pSD)
|
|||||||
r.corner.y = t.baseline.y - SHIP_NAME_HEIGHT + 1;
|
r.corner.y = t.baseline.y - SHIP_NAME_HEIGHT + 1;
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x00, 0x10), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x00, 0x10), 0x01));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
r.corner.x = 2;
|
r.corner.x = 2;
|
||||||
r.corner.y = 139;
|
r.corner.y = 139;
|
||||||
r.extent.width = SIS_SCREEN_WIDTH - 4;
|
r.extent.width = SIS_SCREEN_WIDTH - 4;
|
||||||
r.extent.height = 7;
|
r.extent.height = 7;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
t.baseline.x = /*r.corner.x + (SIS_MESSAGE_WIDTH >> 1)*/ 6;
|
t.baseline.x = /*r.corner.x + (SIS_MESSAGE_WIDTH >> 1)*/ 6;
|
||||||
t.baseline.y = r.corner.y + (r.extent.height - 1);
|
t.baseline.y = r.corner.y + (r.extent.height - 1);
|
||||||
@@ -867,7 +872,8 @@ ShowSummary (SUMMARY_DESC *pSD)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x1B), 0x33));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x1B), 0x33));
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
t.align = ALIGN_CENTER;
|
t.align = ALIGN_CENTER;
|
||||||
|
|||||||
+12
-6
@@ -325,17 +325,20 @@ LoadHyperspace (void)
|
|||||||
DrawSISMessage (NULL_PTR);
|
DrawSISMessage (NULL_PTR);
|
||||||
|
|
||||||
SetContext (RadarContext);
|
SetContext (RadarContext);
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0xE, 0x00), 0x6C));
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0E, 0x00), 0x6C));
|
||||||
|
|
||||||
SetContext (SpaceContext);
|
SetContext (SpaceContext);
|
||||||
if (GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1)
|
if (GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1)
|
||||||
{
|
{
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x7, 0x00, 0x00), 0x2F));
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x07, 0x00, 0x00), 0x2F));
|
||||||
SetColorMap (GetColorMapAddress (hypercmaps[0]));
|
SetColorMap (GetColorMapAddress (hypercmaps[0]));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x1A, 0x00), 0x2F));
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1A, 0x00), 0x2F));
|
||||||
SetColorMap (GetColorMapAddress (hypercmaps[1]));
|
SetColorMap (GetColorMapAddress (hypercmaps[1]));
|
||||||
SET_GAME_STATE (USED_BROADCASTER, 0);
|
SET_GAME_STATE (USED_BROADCASTER, 0);
|
||||||
SET_GAME_STATE (BROADCASTER_RESPONSE, 0);
|
SET_GAME_STATE (BROADCASTER_RESPONSE, 0);
|
||||||
@@ -1524,7 +1527,8 @@ SeedUniverse (void)
|
|||||||
// draws borders to mini-map
|
// draws borders to mini-map
|
||||||
|
|
||||||
RECT r;
|
RECT r;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xE, 0xE, 0xE), 0x00));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0E, 0x0E, 0x0E), 0x00));
|
||||||
r.corner.x = 0;
|
r.corner.x = 0;
|
||||||
r.corner.y = 0;
|
r.corner.y = 0;
|
||||||
r.extent.width = RADAR_WIDTH - 1;
|
r.extent.width = RADAR_WIDTH - 1;
|
||||||
@@ -1534,7 +1538,8 @@ SeedUniverse (void)
|
|||||||
r.extent.height = RADAR_HEIGHT - 1;
|
r.extent.height = RADAR_HEIGHT - 1;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x6, 0x6, 0x6), 0x00));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x06, 0x06), 0x00));
|
||||||
r.corner.x = RADAR_WIDTH - 1;
|
r.corner.x = RADAR_WIDTH - 1;
|
||||||
r.corner.y = 1;
|
r.corner.y = 1;
|
||||||
r.extent.height = RADAR_HEIGHT - 1;
|
r.extent.height = RADAR_HEIGHT - 1;
|
||||||
@@ -1545,7 +1550,8 @@ SeedUniverse (void)
|
|||||||
r.extent.height = 1;
|
r.extent.height = 1;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x00));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x00));
|
||||||
r.corner.x = 0;
|
r.corner.x = 0;
|
||||||
DrawPoint (&r.corner);
|
DrawPoint (&r.corner);
|
||||||
r.corner.x = RADAR_WIDTH - 1;
|
r.corner.x = RADAR_WIDTH - 1;
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ Present_GenerateSIS (PRESENTATION_INPUT_STATE* pPIS)
|
|||||||
));
|
));
|
||||||
SetContextFGFrame (SisFrame);
|
SetContextFGFrame (SisFrame);
|
||||||
SetContextClipRect (NULL_PTR);
|
SetContextClipRect (NULL_PTR);
|
||||||
SisBack = BUILD_COLOR (MAKE_RGB15 (1, 1, 1), 7);
|
SisBack = BUILD_COLOR (MAKE_RGB15 (0x01, 0x01, 0x01), 0x07);
|
||||||
SetContextBackGroundColor (SisBack);
|
SetContextBackGroundColor (SisBack);
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
SetFrameTransparentColor (SisFrame, SisBack);
|
SetFrameTransparentColor (SisFrame, SisBack);
|
||||||
@@ -659,8 +659,8 @@ DoPresentation (PVOID pIS)
|
|||||||
GetContextClipRect (&r);
|
GetContextClipRect (&r);
|
||||||
r.corner.x = r.corner.y = 0;
|
r.corner.x = r.corner.y = 0;
|
||||||
/* paint black rect over screen */
|
/* paint black rect over screen */
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x0, 0x0, 0x0), 0x00));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
}
|
}
|
||||||
@@ -699,8 +699,8 @@ ShowPresentation (STRING PresStr)
|
|||||||
GetContextClipRect (&OldRect);
|
GetContextClipRect (&OldRect);
|
||||||
OldFont = SetContextFont (NULL);
|
OldFont = SetContextFont (NULL);
|
||||||
/* paint black rect over screen */
|
/* paint black rect over screen */
|
||||||
SetContextBackGroundColor (BUILD_COLOR (
|
SetContextBackGroundColor (
|
||||||
MAKE_RGB15 (0x0, 0x0, 0x0), 0x00));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ SetContext (CONTEXT Context)
|
|||||||
{
|
{
|
||||||
CONTEXT LastContext;
|
CONTEXT LastContext;
|
||||||
|
|
||||||
if (Context != (LastContext = (CONTEXT)_pCurContext))
|
LastContext = (CONTEXT)_pCurContext;
|
||||||
|
if (Context != LastContext)
|
||||||
{
|
{
|
||||||
if (LastContext)
|
if (LastContext)
|
||||||
{
|
{
|
||||||
@@ -77,11 +78,9 @@ CreateContext (void)
|
|||||||
/* initialize context */
|
/* initialize context */
|
||||||
OldContext = SetContext (CaptureContext (ContextRef));
|
OldContext = SetContext (CaptureContext (ContextRef));
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F)
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F));
|
||||||
);
|
|
||||||
SetContextBackGroundColor (
|
SetContextBackGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00)
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
);
|
|
||||||
SetContextClipping (TRUE);
|
SetContextClipping (TRUE);
|
||||||
ReleaseContext (SetContext (OldContext));
|
ReleaseContext (SetContext (OldContext));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,12 +7,18 @@
|
|||||||
WIDGET *widget_focus = NULL;
|
WIDGET *widget_focus = NULL;
|
||||||
|
|
||||||
/* Some basic color defines */
|
/* Some basic color defines */
|
||||||
#define WIDGET_ACTIVE_COLOR BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x00), 0x0E)
|
#define WIDGET_ACTIVE_COLOR \
|
||||||
#define WIDGET_INACTIVE_COLOR BUILD_COLOR (MAKE_RGB15 (0x18, 0x18, 0x1F), 0x09)
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x00), 0x0E)
|
||||||
#define WIDGET_INACTIVE_SELECTED_COLOR BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F)
|
#define WIDGET_INACTIVE_COLOR \
|
||||||
#define WIDGET_CURSOR_COLOR BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00)
|
BUILD_COLOR (MAKE_RGB15 (0x18, 0x18, 0x1F), 0x00)
|
||||||
#define WIDGET_DIALOG_COLOR BUILD_COLOR (MAKE_RGB15 (0x14, 0x14, 0x14), 0x07)
|
#define WIDGET_INACTIVE_SELECTED_COLOR \
|
||||||
#define WIDGET_DIALOG_TEXT_COLOR BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00)
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F)
|
||||||
|
#define WIDGET_CURSOR_COLOR \
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00)
|
||||||
|
#define WIDGET_DIALOG_COLOR \
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x14, 0x14, 0x14), 0x07)
|
||||||
|
#define WIDGET_DIALOG_TEXT_COLOR \
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00)
|
||||||
|
|
||||||
void
|
void
|
||||||
DrawShadowedBox(PRECT r, COLOR bg, COLOR dark, COLOR medium)
|
DrawShadowedBox(PRECT r, COLOR bg, COLOR dark, COLOR medium)
|
||||||
@@ -64,7 +70,7 @@ DrawLabelAsWindow(WIDGET_LABEL *label)
|
|||||||
TEXT t;
|
TEXT t;
|
||||||
int i, win_w, win_h;
|
int i, win_w, win_h;
|
||||||
|
|
||||||
dark = BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F);
|
dark = BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F);
|
||||||
medium = BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19);
|
medium = BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19);
|
||||||
|
|
||||||
/* Compute the dimensions of the label */
|
/* Compute the dimensions of the label */
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ TFB_FadeClearScreen (void)
|
|||||||
// paint black rect over screen
|
// paint black rect over screen
|
||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
SetContext (ScreenContext);
|
SetContext (ScreenContext);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x0, 0x0, 0x0), 0x00));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|
||||||
|
|||||||
+20
-10
@@ -41,17 +41,20 @@ static BYTE ConvertAlternateMenu (BYTE BaseState, BYTE NewState);
|
|||||||
static void
|
static void
|
||||||
DrawPCMenuFrame (RECT *r)
|
DrawPCMenuFrame (RECT *r)
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x0F, 0x0F, 0x0F), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x0F, 0x0F), 0x00));
|
||||||
DrawRectangle (r);
|
DrawRectangle (r);
|
||||||
r->corner.x++;
|
r->corner.x++;
|
||||||
r->corner.y++;
|
r->corner.y++;
|
||||||
r->extent.height--;
|
r->extent.height--;
|
||||||
r->extent.width--;
|
r->extent.width--;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x06, 0x06, 0x06), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x06, 0x06), 0x00));
|
||||||
DrawRectangle (r);
|
DrawRectangle (r);
|
||||||
r->extent.height--;
|
r->extent.height--;
|
||||||
r->extent.width--;
|
r->extent.width--;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x15), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x15), 0x00));
|
||||||
DrawFilledRectangle (r);
|
DrawFilledRectangle (r);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,7 +95,8 @@ DrawPCMenu (BYTE beg_index, BYTE end_index, BYTE NewState, BYTE hilite, RECT *r)
|
|||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
r->corner.x++;
|
r->corner.x++;
|
||||||
r->extent.width -= 2;
|
r->extent.width -= 2;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x15, 0x15), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x15, 0x15), 0x00));
|
||||||
for (i = beg_index; i <= end_index; i++)
|
for (i = beg_index; i <= end_index; i++)
|
||||||
{
|
{
|
||||||
utf8StringCopy (buf, sizeof (buf),
|
utf8StringCopy (buf, sizeof (buf),
|
||||||
@@ -101,13 +105,16 @@ DrawPCMenu (BYTE beg_index, BYTE end_index, BYTE NewState, BYTE hilite, RECT *r)
|
|||||||
GAME_STRING (MAINMENU_STRING_BASE + i));
|
GAME_STRING (MAINMENU_STRING_BASE + i));
|
||||||
if (hilite && pos == i)
|
if (hilite && pos == i)
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x00));
|
||||||
r->corner.y = t.baseline.y - PC_MENU_HEIGHT + 2;
|
r->corner.y = t.baseline.y - PC_MENU_HEIGHT + 2;
|
||||||
r->extent.height = PC_MENU_HEIGHT - 1;
|
r->extent.height = PC_MENU_HEIGHT - 1;
|
||||||
DrawFilledRectangle (r);
|
DrawFilledRectangle (r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x00));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x15, 0x15), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x15, 0x15), 0x00));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
@@ -473,7 +480,8 @@ DrawMenuStateStrings (BYTE beg_index, SWORD NewState)
|
|||||||
r.corner.y = s.origin.y - 11;
|
r.corner.y = s.origin.y - 11;
|
||||||
r.extent.width = RADAR_WIDTH + 2;
|
r.extent.width = RADAR_WIDTH + 2;
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x1D));
|
||||||
if (s.frame && optWhichMenu == OPT_PC)
|
if (s.frame && optWhichMenu == OPT_PC)
|
||||||
{
|
{
|
||||||
if (beg_index == PM_CREW)
|
if (beg_index == PM_CREW)
|
||||||
@@ -559,7 +567,8 @@ DrawMenuStateStrings (BYTE beg_index, SWORD NewState)
|
|||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
sprintf (buf, "%u", GLOBAL (CrewCost));
|
sprintf (buf, "%u", GLOBAL (CrewCost));
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x02));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x00));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
break;
|
break;
|
||||||
case PM_FUEL:
|
case PM_FUEL:
|
||||||
@@ -570,7 +579,8 @@ DrawMenuStateStrings (BYTE beg_index, SWORD NewState)
|
|||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
sprintf (buf, "%u", GLOBAL (FuelCost));
|
sprintf (buf, "%u", GLOBAL (FuelCost));
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x02));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x00));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ crew_preprocess (PELEMENT ElementPtr)
|
|||||||
|
|
||||||
SetPrimColor (&DisplayArray[ElementPtr->PrimIndex],
|
SetPrimColor (&DisplayArray[ElementPtr->PrimIndex],
|
||||||
GetPrimColor (&DisplayArray[ElementPtr->PrimIndex])
|
GetPrimColor (&DisplayArray[ElementPtr->PrimIndex])
|
||||||
^ BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
^ BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
ElementPtr->state_flags |= CHANGING;
|
ElementPtr->state_flags |= CHANGING;
|
||||||
|
|
||||||
if ((hTarget = ElementPtr->hTarget) == 0)
|
if ((hTarget = ElementPtr->hTarget) == 0)
|
||||||
|
|||||||
@@ -56,14 +56,16 @@ DrawModuleStrings (PMENU_STATE pMS, BYTE NewModule)
|
|||||||
r.extent.width = RADAR_WIDTH + 2;
|
r.extent.width = RADAR_WIDTH + 2;
|
||||||
r.extent.height = 11;
|
r.extent.height = 11;
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
if (NewModule >= EMPTY_SLOT)
|
if (NewModule >= EMPTY_SLOT)
|
||||||
{
|
{
|
||||||
r.corner = s.origin;
|
r.corner = s.origin;
|
||||||
r.extent.width = RADAR_WIDTH;
|
r.extent.width = RADAR_WIDTH;
|
||||||
r.extent.height = RADAR_HEIGHT;
|
r.extent.height = RADAR_HEIGHT;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
}
|
}
|
||||||
else if (pMS->CurFrame)
|
else if (pMS->CurFrame)
|
||||||
@@ -80,7 +82,8 @@ DrawModuleStrings (PMENU_STATE pMS, BYTE NewModule)
|
|||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
sprintf (buf, "%u", GLOBAL (ModuleCost[NewModule]) * MODULE_COST_SCALE);
|
sprintf (buf, "%u", GLOBAL (ModuleCost[NewModule]) * MODULE_COST_SCALE);
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x02));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x02));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
}
|
}
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
@@ -122,7 +125,8 @@ RedistributeFuel (void)
|
|||||||
while ((GLOBAL_SIS (FuelOnBoard) += FUEL_VOLUME_PER_ROW) <
|
while ((GLOBAL_SIS (FuelOnBoard) += FUEL_VOLUME_PER_ROW) <
|
||||||
GetFTankCapacity (&r.corner))
|
GetFTankCapacity (&r.corner))
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xB, 0x00, 0x00), 0x2E));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0B, 0x00, 0x00), 0x2E));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,7 +590,8 @@ ChangeFuelQuantity (void)
|
|||||||
% FUEL_VOLUME_PER_ROW == 0)
|
% FUEL_VOLUME_PER_ROW == 0)
|
||||||
{
|
{
|
||||||
GetFTankCapacity (&r.corner);
|
GetFTankCapacity (&r.corner);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xB, 0x00, 0x00), 0x2E));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0B, 0x00, 0x00), 0x2E));
|
||||||
r.extent.width = 5;
|
r.extent.width = 5;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,8 @@ DoPickBattleShip (PMENU_STATE pMS)
|
|||||||
LockMutex (GraphicsLock);
|
LockMutex (GraphicsLock);
|
||||||
|
|
||||||
#ifdef NEVER
|
#ifdef NEVER
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x1D));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x1D));
|
||||||
DrawRectangle (&pMS->flash_rect0);
|
DrawRectangle (&pMS->flash_rect0);
|
||||||
#endif /* NEVER */
|
#endif /* NEVER */
|
||||||
pMS->first_item.y = new_row;
|
pMS->first_item.y = new_row;
|
||||||
@@ -513,8 +514,8 @@ DrawArmadaPickShip (BOOLEAN draw_salvage_frame, PRECT pPickRect)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Ship ran away */
|
/* Ship ran away */
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
DrawFilledStamp (&s);
|
DrawFilledStamp (&s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,9 +51,11 @@ ShowRemainingCapacity (void)
|
|||||||
r.extent.height = 7;
|
r.extent.height = 7;
|
||||||
|
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
font_DrawText (&rt);
|
font_DrawText (&rt);
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
|
|
||||||
@@ -94,7 +96,7 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
r.extent.height = 109;
|
r.extent.height = 109;
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
TRUE,
|
TRUE,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
|
|
||||||
@@ -104,7 +106,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
ct.align = ALIGN_CENTER;
|
ct.align = ALIGN_CENTER;
|
||||||
ct.pStr = GAME_STRING (CARGO_STRING_BASE);
|
ct.pStr = GAME_STRING (CARGO_STRING_BASE);
|
||||||
ct.CharCount = (COUNT)~0;
|
ct.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B));
|
||||||
font_DrawText (&ct);
|
font_DrawText (&ct);
|
||||||
|
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
@@ -124,7 +127,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
rt.baseline.y = cy - 7;
|
rt.baseline.y = cy - 7;
|
||||||
rt.CharCount = 1;
|
rt.CharCount = 1;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
rt.baseline.x = 32;
|
rt.baseline.x = 32;
|
||||||
rt_amount_buf[0] = '$';
|
rt_amount_buf[0] = '$';
|
||||||
font_DrawText (&rt);
|
font_DrawText (&rt);
|
||||||
@@ -148,14 +152,16 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
{
|
{
|
||||||
rt.baseline.y = cy;
|
rt.baseline.y = cy;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
rt.baseline.x = 32;
|
rt.baseline.x = 32;
|
||||||
sprintf (rt_amount_buf, "%u",
|
sprintf (rt_amount_buf, "%u",
|
||||||
GLOBAL (ElementWorth[OldElement]));
|
GLOBAL (ElementWorth[OldElement]));
|
||||||
rt.CharCount = (COUNT)~0;
|
rt.CharCount = (COUNT)~0;
|
||||||
font_DrawText (&rt);
|
font_DrawText (&rt);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
||||||
rt.baseline.x = 58;
|
rt.baseline.x = 58;
|
||||||
sprintf (rt_amount_buf, "%u",
|
sprintf (rt_amount_buf, "%u",
|
||||||
GLOBAL_SIS (ElementAmounts[OldElement]));
|
GLOBAL_SIS (ElementAmounts[OldElement]));
|
||||||
@@ -178,7 +184,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
s.frame = SetAbsFrameIndex (s.frame, 68);
|
s.frame = SetAbsFrameIndex (s.frame, 68);
|
||||||
DrawStamp (&s);
|
DrawStamp (&s);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
||||||
rt.baseline.x = 58;
|
rt.baseline.x = 58;
|
||||||
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (TotalBioMass));
|
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (TotalBioMass));
|
||||||
rt.CharCount = (COUNT)~0;
|
rt.CharCount = (COUNT)~0;
|
||||||
@@ -188,7 +195,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
r.corner.y = 117;
|
r.corner.y = 117;
|
||||||
r.extent.width = 56;
|
r.extent.width = 56;
|
||||||
r.extent.height = 1;
|
r.extent.height = 1;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -216,7 +224,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
else
|
else
|
||||||
cy = y + (OldElement * 9);
|
cy = y + (OldElement * 9);
|
||||||
r.corner.y = cy - 6;
|
r.corner.y = cy - 6;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
rt.baseline.y = cy;
|
rt.baseline.y = cy;
|
||||||
@@ -225,7 +234,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (TotalBioMass));
|
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (TotalBioMass));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
rt.baseline.x = 32;
|
rt.baseline.x = 32;
|
||||||
sprintf (rt_amount_buf, "%u", GLOBAL (ElementWorth[OldElement]));
|
sprintf (rt_amount_buf, "%u", GLOBAL (ElementWorth[OldElement]));
|
||||||
rt.CharCount = (COUNT)~0;
|
rt.CharCount = (COUNT)~0;
|
||||||
@@ -233,7 +243,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (ElementAmounts[OldElement]));
|
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (ElementAmounts[OldElement]));
|
||||||
}
|
}
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
||||||
rt.baseline.x = 58;
|
rt.baseline.x = 58;
|
||||||
rt.CharCount = (COUNT)~0;
|
rt.CharCount = (COUNT)~0;
|
||||||
font_DrawText (&rt);
|
font_DrawText (&rt);
|
||||||
@@ -246,7 +257,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
else
|
else
|
||||||
cy = y + (NewElement * 9);
|
cy = y + (NewElement * 9);
|
||||||
r.corner.y = cy - 6;
|
r.corner.y = cy - 6;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
rt.baseline.y = cy;
|
rt.baseline.y = cy;
|
||||||
@@ -255,7 +267,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (TotalBioMass));
|
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (TotalBioMass));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
||||||
rt.baseline.x = 32;
|
rt.baseline.x = 32;
|
||||||
sprintf (rt_amount_buf, "%u", GLOBAL (ElementWorth[NewElement]));
|
sprintf (rt_amount_buf, "%u", GLOBAL (ElementWorth[NewElement]));
|
||||||
rt.CharCount = (COUNT)~0;
|
rt.CharCount = (COUNT)~0;
|
||||||
@@ -263,7 +276,8 @@ DrawCargoStrings (BYTE OldElement, BYTE NewElement)
|
|||||||
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (ElementAmounts[NewElement]));
|
sprintf (rt_amount_buf, "%u", GLOBAL_SIS (ElementAmounts[NewElement]));
|
||||||
}
|
}
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B));
|
||||||
rt.baseline.x = 58;
|
rt.baseline.x = 58;
|
||||||
rt.CharCount = (COUNT)~0;
|
rt.CharCount = (COUNT)~0;
|
||||||
font_DrawText (&rt);
|
font_DrawText (&rt);
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ DrawDevices (PMENU_STATE pMS, BYTE OldDevice, BYTE NewDevice)
|
|||||||
r.extent.height = 109;
|
r.extent.height = 109;
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
TRUE,
|
TRUE,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ DrawDevices (PMENU_STATE pMS, BYTE OldDevice, BYTE NewDevice)
|
|||||||
ct.pStr = GAME_STRING (DEVICE_STRING_BASE);
|
ct.pStr = GAME_STRING (DEVICE_STRING_BASE);
|
||||||
ct.CharCount = (COUNT)~0;
|
ct.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B));
|
||||||
font_DrawText (&ct);
|
font_DrawText (&ct);
|
||||||
|
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
@@ -169,11 +169,11 @@ DrawDevices (PMENU_STATE pMS, BYTE OldDevice, BYTE NewDevice)
|
|||||||
cy = y + ((NewDevice - pMS->first_item.y) * 18);
|
cy = y + ((NewDevice - pMS->first_item.y) * 18);
|
||||||
r.corner.y = cy - 6;
|
r.corner.y = cy - 6;
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B));
|
||||||
t.baseline.y = cy;
|
t.baseline.y = cy;
|
||||||
t.pStr = GAME_STRING (pDeviceMap[NewDevice] + DEVICE_STRING_BASE + 1);
|
t.pStr = GAME_STRING (pDeviceMap[NewDevice] + DEVICE_STRING_BASE + 1);
|
||||||
t.CharCount = utf8StringPos (t.pStr, ' ');
|
t.CharCount = utf8StringPos (t.pStr, ' ');
|
||||||
|
|||||||
@@ -291,14 +291,17 @@ DrawStarMap (COUNT race_update, PRECT pClipRect)
|
|||||||
if (which_space <= 1)
|
if (which_space <= 1)
|
||||||
{
|
{
|
||||||
SDPtr = &star_array[0];
|
SDPtr = &star_array[0];
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x7), 0x57));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x07), 0x57));
|
||||||
SetContextBackGroundColor (BLACK_COLOR);
|
SetContextBackGroundColor (BLACK_COLOR);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SDPtr = &star_array[NUM_SOLAR_SYSTEMS + 1];
|
SDPtr = &star_array[NUM_SOLAR_SYSTEMS + 1];
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0xB, 0x00), 0x6D));
|
SetContextForeGroundColor (
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x8, 0x00), 0x6E));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0B, 0x00), 0x6D));
|
||||||
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x08, 0x00), 0x6E));
|
||||||
}
|
}
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
|
|
||||||
@@ -330,7 +333,8 @@ DrawStarMap (COUNT race_update, PRECT pClipRect)
|
|||||||
r.corner.y = UNIVERSE_TO_DISPY (r.corner.y)
|
r.corner.y = UNIVERSE_TO_DISPY (r.corner.y)
|
||||||
- (r.extent.height >> 1);
|
- (r.extent.height >> 1);
|
||||||
|
|
||||||
OldColor = SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x3, 0x3, 0x3), 0x22));
|
OldColor = SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x03, 0x03, 0x03), 0x22));
|
||||||
DrawFilledOval (&r);
|
DrawFilledOval (&r);
|
||||||
SetContextForeGroundColor (OldColor);
|
SetContextForeGroundColor (OldColor);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ ClearReportArea (void)
|
|||||||
SetContextBackGroundColor (BLACK_COLOR);
|
SetContextBackGroundColor (BLACK_COLOR);
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
SetContextClipping (FALSE);
|
SetContextClipping (FALSE);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x00, 0x07, 0x00), 0x57));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x07, 0x00), 0x57));
|
||||||
|
|
||||||
startx = 1 + (r.extent.width >> 1) - 1;
|
startx = 1 + (r.extent.width >> 1) - 1;
|
||||||
s.origin.y = 1;
|
s.origin.y = 1;
|
||||||
@@ -231,7 +231,8 @@ InitPageCell:
|
|||||||
if (!Sleepy)
|
if (!Sleepy)
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
ClearReportArea();
|
ClearReportArea();
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0, 0x1F, 0), 0xFF));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0xFF));
|
||||||
if (Sleepy)
|
if (Sleepy)
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ PrintScanTitlePC (TEXT *t, RECT *r, const char *txt, int xpos)
|
|||||||
TextRect (t, r, NULL_PTR);
|
TextRect (t, r, NULL_PTR);
|
||||||
t->baseline.x += r->extent.width;
|
t->baseline.x += r->extent.width;
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x19), 0x3B));
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x19), 0x3B));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -200,10 +200,11 @@ PrintCoarseScanPC (void)
|
|||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x00, 0x00, 0x15), 0x3B));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x15), 0x3B));
|
||||||
SetContextFont (MicroFont);
|
SetContextFont (MicroFont);
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|
||||||
@@ -439,7 +440,9 @@ PrintCoarseScan3DO (void)
|
|||||||
t.baseline.y = 13;
|
t.baseline.y = 13;
|
||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x19), 0x3B));
|
|
||||||
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x19), 0x3B));
|
||||||
SetContextFont (MicroFont);
|
SetContextFont (MicroFont);
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
@@ -1082,11 +1085,11 @@ DoScan (PMENU_STATE pMS)
|
|||||||
break;
|
break;
|
||||||
case ENERGY_SCAN:
|
case ENERGY_SCAN:
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xC, 0xC, 0xC), 0x1C));
|
BUILD_COLOR (MAKE_RGB15 (0x0C, 0x0C, 0x0C), 0x1C));
|
||||||
break;
|
break;
|
||||||
case BIOLOGICAL_SCAN:
|
case BIOLOGICAL_SCAN:
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0xE, 0x00), 0x6C));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0E, 0x00), 0x6C));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|||||||
@@ -1832,7 +1832,7 @@ DrawStarBackGround (BOOLEAN ForPlanet)
|
|||||||
SetContext (ScreenContext);
|
SetContext (ScreenContext);
|
||||||
|
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
r.corner.x = SIS_ORG_X - 1;
|
r.corner.x = SIS_ORG_X - 1;
|
||||||
r.corner.y = (SIS_ORG_Y + SIS_SCREEN_HEIGHT) - MAP_HEIGHT - 4;
|
r.corner.y = (SIS_ORG_Y + SIS_SCREEN_HEIGHT) - MAP_HEIGHT - 4;
|
||||||
r.extent.width = SIS_SCREEN_WIDTH + 2;
|
r.extent.width = SIS_SCREEN_WIDTH + 2;
|
||||||
@@ -1840,7 +1840,7 @@ DrawStarBackGround (BOOLEAN ForPlanet)
|
|||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.extent.width = 1;
|
r.extent.width = 1;
|
||||||
r.extent.height = MAP_HEIGHT + 1;
|
r.extent.height = MAP_HEIGHT + 1;
|
||||||
r.corner.y = (SIS_ORG_Y + SIS_SCREEN_HEIGHT) - MAP_HEIGHT;
|
r.corner.y = (SIS_ORG_Y + SIS_SCREEN_HEIGHT) - MAP_HEIGHT;
|
||||||
|
|||||||
@@ -491,8 +491,8 @@ SaveProblemMessage (PSTAMP MsgStamp)
|
|||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
DrawStarConBox (&r, 2,
|
DrawStarConBox (&r, 2,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
TRUE, BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
TRUE, BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x14, 0x14, 0x14), 0x0F));
|
BUILD_COLOR (MAKE_RGB15 (0x14, 0x14, 0x14), 0x0F));
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ initialize_autoaim_laser (PELEMENT ShipPtr, HELEMENT LaserArray[])
|
|||||||
LaserBlock.sender = (ShipPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
LaserBlock.sender = (ShipPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
||||||
| IGNORE_SIMILAR;
|
| IGNORE_SIMILAR;
|
||||||
LaserBlock.pixoffs = ARILOU_OFFSET;
|
LaserBlock.pixoffs = ARILOU_OFFSET;
|
||||||
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E);
|
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E);
|
||||||
LaserArray[0] = initialize_laser (&LaserBlock);
|
LaserArray[0] = initialize_laser (&LaserBlock);
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
|
|||||||
@@ -203,9 +203,9 @@ initialize_megawatt_laser (PELEMENT ShipPtr, HELEMENT LaserArray[])
|
|||||||
COLOR cycle_array[] =
|
COLOR cycle_array[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x3, 0x00), 0x7F),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x03, 0x00), 0x7F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x3, 0x00), 0x7F),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x03, 0x00), 0x7F),
|
||||||
};
|
};
|
||||||
|
|
||||||
GetElementStarShip (ShipPtr, &StarShipPtr);
|
GetElementStarShip (ShipPtr, &StarShipPtr);
|
||||||
@@ -217,12 +217,8 @@ initialize_megawatt_laser (PELEMENT ShipPtr, HELEMENT LaserArray[])
|
|||||||
+ DISPLAY_TO_WORLD (r.corner.x);
|
+ DISPLAY_TO_WORLD (r.corner.x);
|
||||||
LaserBlock.cy = DISPLAY_ALIGN (ShipPtr->next.location.y)
|
LaserBlock.cy = DISPLAY_ALIGN (ShipPtr->next.location.y)
|
||||||
+ DISPLAY_TO_WORLD (r.corner.y);
|
+ DISPLAY_TO_WORLD (r.corner.y);
|
||||||
LaserBlock.ex = COSINE (
|
LaserBlock.ex = COSINE (FACING_TO_ANGLE (LaserBlock.face), LASER_RANGE);
|
||||||
FACING_TO_ANGLE (LaserBlock.face), LASER_RANGE
|
LaserBlock.ey = SINE (FACING_TO_ANGLE (LaserBlock.face), LASER_RANGE);
|
||||||
);
|
|
||||||
LaserBlock.ey = SINE (
|
|
||||||
FACING_TO_ANGLE (LaserBlock.face), LASER_RANGE
|
|
||||||
);
|
|
||||||
LaserBlock.sender = (ShipPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
LaserBlock.sender = (ShipPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
||||||
| IGNORE_SIMILAR;
|
| IGNORE_SIMILAR;
|
||||||
LaserBlock.pixoffs = 0;
|
LaserBlock.pixoffs = 0;
|
||||||
@@ -353,12 +349,11 @@ chmmr_postprocess (PELEMENT ElementPtr)
|
|||||||
DISPLAY_TO_WORLD (8 + 9 + 11 + 14 + 18),
|
DISPLAY_TO_WORLD (8 + 9 + 11 + 14 + 18),
|
||||||
};
|
};
|
||||||
COLOR color_tab[] =
|
COLOR color_tab[] =
|
||||||
{
|
{ BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x10), 0x53),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x10), 0x53),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x0E), 0x54),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0xE), 0x54),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x0C), 0x55),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0xC), 0x55),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x09), 0x56),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x9), 0x56),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x07), 0x57),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x7), 0x57),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -556,7 +551,7 @@ spawn_point_defense (PELEMENT ElementPtr)
|
|||||||
(SattPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
(SattPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
||||||
| IGNORE_SIMILAR;
|
| IGNORE_SIMILAR;
|
||||||
LaserBlock.pixoffs = 0;
|
LaserBlock.pixoffs = 0;
|
||||||
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x00, 0x1, 0x1F), 0x4D);
|
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x00, 0x01, 0x1F), 0x4D);
|
||||||
hPointDefense = initialize_laser (&LaserBlock);
|
hPointDefense = initialize_laser (&LaserBlock);
|
||||||
if (hPointDefense)
|
if (hPointDefense)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -238,14 +238,14 @@ ilwrath_preprocess (PELEMENT ElementPtr)
|
|||||||
{
|
{
|
||||||
if (Color == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F))
|
if (Color == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F))
|
||||||
SetPrimType (lpPrim, STAMP_PRIM);
|
SetPrimType (lpPrim, STAMP_PRIM);
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F));
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B));
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ProcessSound (SetAbsSoundIndex (
|
ProcessSound (SetAbsSoundIndex (
|
||||||
@@ -329,14 +329,14 @@ ilwrath_preprocess (PELEMENT ElementPtr)
|
|||||||
SetPrimColor (lpPrim, BLACK_COLOR);
|
SetPrimColor (lpPrim, BLACK_COLOR);
|
||||||
Untarget (ElementPtr);
|
Untarget (ElementPtr);
|
||||||
}
|
}
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
else if (Color == BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B))
|
else if (Color == BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x14), 0x03));
|
||||||
else
|
else
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0x1F), 0x0B));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x1F), 0x0B));
|
||||||
|
|
||||||
ElementPtr->state_flags |= CHANGING;
|
ElementPtr->state_flags |= CHANGING;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ initialize_dual_weapons (PELEMENT ShipPtr, HELEMENT WeaponArray[])
|
|||||||
|
|
||||||
LaserBlock.sender = ShipPtr->state_flags & (GOOD_GUY | BAD_GUY);
|
LaserBlock.sender = ShipPtr->state_flags & (GOOD_GUY | BAD_GUY);
|
||||||
LaserBlock.pixoffs = 0;
|
LaserBlock.pixoffs = 0;
|
||||||
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0xA), 0x0C);
|
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x0A), 0x0C);
|
||||||
LaserBlock.face = facing;
|
LaserBlock.face = facing;
|
||||||
|
|
||||||
ex = cx + COSINE (angle, LASER_RANGE);
|
ex = cx + COSINE (angle, LASER_RANGE);
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ destruct_preprocess (PELEMENT ElementPtr)
|
|||||||
{
|
{
|
||||||
SetPrimType (lpPrim, STAMPFILL_PRIM);
|
SetPrimType (lpPrim, STAMPFILL_PRIM);
|
||||||
if (ElementPtr->life_span == DESTRUCT_SWITCH + 2)
|
if (ElementPtr->life_span == DESTRUCT_SWITCH + 2)
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E));
|
||||||
else
|
else
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F));
|
||||||
}
|
}
|
||||||
@@ -156,12 +156,12 @@ destruct_preprocess (PELEMENT ElementPtr)
|
|||||||
ElementPtr->next.image.frame =
|
ElementPtr->next.image.frame =
|
||||||
IncFrameIndex (ElementPtr->current.image.frame);
|
IncFrameIndex (ElementPtr->current.image.frame);
|
||||||
if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F))
|
if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x1F), 0x0F))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E));
|
||||||
else if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E))
|
else if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0xA), 0x0C));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x0A), 0x0C));
|
||||||
else if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0xA), 0x0C))
|
else if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x0A), 0x0C))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x14, 0xA, 0x00), 0x06));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x14, 0x0A, 0x00), 0x06));
|
||||||
else if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x14, 0xA, 0x00), 0x06))
|
else if (GetPrimColor (lpPrim) == BUILD_COLOR (MAKE_RGB15 (0x14, 0x0A, 0x00), 0x06))
|
||||||
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x14, 0x00, 0x00), 0x04));
|
SetPrimColor (lpPrim, BUILD_COLOR (MAKE_RGB15 (0x14, 0x00, 0x00), 0x04));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ initialize_lightning (PELEMENT ElementPtr, HELEMENT LaserArray[])
|
|||||||
case 2:
|
case 2:
|
||||||
SetPrimColor (
|
SetPrimColor (
|
||||||
&(GLOBAL (DisplayArray))[LaserPtr->PrimIndex],
|
&(GLOBAL (DisplayArray))[LaserPtr->PrimIndex],
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x6, 0x7, 0x1F), 0x4A)
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x07, 0x1F), 0x4A)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ fighter_postprocess (PELEMENT ElementPtr)
|
|||||||
LaserBlock.sender = (ElementPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
LaserBlock.sender = (ElementPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
||||||
| IGNORE_SIMILAR;
|
| IGNORE_SIMILAR;
|
||||||
LaserBlock.pixoffs = FIGHTER_OFFSET;
|
LaserBlock.pixoffs = FIGHTER_OFFSET;
|
||||||
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E);
|
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E);
|
||||||
Laser = initialize_laser (&LaserBlock);
|
Laser = initialize_laser (&LaserBlock);
|
||||||
if (Laser)
|
if (Laser)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -307,18 +307,18 @@ utwig_preprocess (PELEMENT ElementPtr)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
COLOR color_tab[] =
|
COLOR color_tab[] =
|
||||||
{ BUILD_COLOR (MAKE_RGB15 (0x1F, 0x00, 0x00), 0x2a),
|
{ BUILD_COLOR (MAKE_RGB15 (0x1F, 0x00, 0x00), 0x2a),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2b),
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2b),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2c),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2c),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2d),
|
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2d),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2e),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2e),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xB, 0x00, 0x00), 0x2f),
|
BUILD_COLOR (MAKE_RGB15 (0x0B, 0x00, 0x00), 0x2f),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x15, 0x00), 0x7a),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x15, 0x00), 0x7a),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7b),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7b),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xE, 0x00), 0x7c),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0E, 0x00), 0x7c),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0x00), 0x7d),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x00), 0x7d),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x7, 0x00), 0x7e),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x07, 0x00), 0x7e),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x3, 0x00), 0x7f), };
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x03, 0x00), 0x7f), };
|
||||||
|
|
||||||
#define NUM_TAB_COLORS (sizeof (color_tab) / sizeof (color_tab[0]))
|
#define NUM_TAB_COLORS (sizeof (color_tab) / sizeof (color_tab[0]))
|
||||||
|
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ initialize_horrific_laser (PELEMENT ShipPtr, HELEMENT LaserArray[])
|
|||||||
LaserBlock.sender = (ShipPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
LaserBlock.sender = (ShipPtr->state_flags & (GOOD_GUY | BAD_GUY))
|
||||||
| IGNORE_SIMILAR;
|
| IGNORE_SIMILAR;
|
||||||
LaserBlock.pixoffs = VUX_OFFSET;
|
LaserBlock.pixoffs = VUX_OFFSET;
|
||||||
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0xA, 0x1F, 0xA), 0x0A);
|
LaserBlock.color = BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1F, 0x0A), 0x0A);
|
||||||
LaserArray[0] = initialize_laser (&LaserBlock);
|
LaserArray[0] = initialize_laser (&LaserBlock);
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ DrawCrewFuelString (COORD y, SIZE state)
|
|||||||
DrawStamp (&Stamp);
|
DrawStamp (&Stamp);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#define LOW_FUEL_COLOR BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E)
|
#define LOW_FUEL_COLOR BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E)
|
||||||
SetContextForeGroundColor (LOW_FUEL_COLOR);
|
SetContextForeGroundColor (LOW_FUEL_COLOR);
|
||||||
DrawFilledStamp (&Stamp);
|
DrawFilledStamp (&Stamp);
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,8 @@ DrawShipNameString (UNICODE *pStr, COUNT CharCount, COORD y)
|
|||||||
Text.baseline.y = STARCON_TEXT_HEIGHT + 3 + y;
|
Text.baseline.y = STARCON_TEXT_HEIGHT + 3 + y;
|
||||||
Text.baseline.x = STATUS_WIDTH >> 1;
|
Text.baseline.x = STATUS_WIDTH >> 1;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
||||||
font_DrawText (&Text);
|
font_DrawText (&Text);
|
||||||
--Text.baseline.y;
|
--Text.baseline.y;
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
@@ -84,7 +85,8 @@ ClearShipStatus (COORD y)
|
|||||||
{
|
{
|
||||||
RECT r;
|
RECT r;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
r.corner.x = 2;
|
r.corner.x = 2;
|
||||||
r.corner.y = 3 + y;
|
r.corner.y = 3 + y;
|
||||||
r.extent.width = STATUS_WIDTH - 4;
|
r.extent.width = STATUS_WIDTH - 4;
|
||||||
@@ -97,7 +99,8 @@ OutlineShipStatus (COORD y)
|
|||||||
{
|
{
|
||||||
RECT r;
|
RECT r;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.corner.x = 0;
|
r.corner.x = 0;
|
||||||
r.corner.y = 1 + y;
|
r.corner.y = 1 + y;
|
||||||
r.extent.width = STATUS_WIDTH;
|
r.extent.width = STATUS_WIDTH;
|
||||||
@@ -112,7 +115,8 @@ OutlineShipStatus (COORD y)
|
|||||||
++r.corner.x;
|
++r.corner.x;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
||||||
r.corner.x = STATUS_WIDTH - 1;
|
r.corner.x = STATUS_WIDTH - 1;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
r.corner.x = STATUS_WIDTH - 2;
|
r.corner.x = STATUS_WIDTH - 2;
|
||||||
@@ -174,7 +178,7 @@ InitShipStatus (STARSHIPPTR StarShipPtr, PRECT pClipRect)
|
|||||||
energy_height = (((SIPtr->max_energy + 1) >> 1) << 1) + 1;
|
energy_height = (((SIPtr->max_energy + 1) >> 1) << 1) + 1;
|
||||||
|
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.corner.x = CREW_XOFFS - 1;
|
r.corner.x = CREW_XOFFS - 1;
|
||||||
r.corner.y = GAUGE_YOFFS + 1 + y;
|
r.corner.y = GAUGE_YOFFS + 1 + y;
|
||||||
r.extent.width = STAT_WIDTH + 2;
|
r.extent.width = STAT_WIDTH + 2;
|
||||||
@@ -337,7 +341,7 @@ DeltaStatistics (STARSHIPPTR StarShipPtr, SIZE crew_delta, SIZE
|
|||||||
r.corner.y = (y + 1) -
|
r.corner.y = (y + 1) -
|
||||||
(((oldNumBlocks + 1) >> 1) * (UNIT_HEIGHT + 1));
|
(((oldNumBlocks + 1) >> 1) * (UNIT_HEIGHT + 1));
|
||||||
#define CREW_UNIT_COLOR BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x00), 0x02)
|
#define CREW_UNIT_COLOR BUILD_COLOR (MAKE_RGB15 (0x00, 0x14, 0x00), 0x02)
|
||||||
#define ROBOT_UNIT_COLOR BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08)
|
#define ROBOT_UNIT_COLOR BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08)
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
(ShipInfoPtr->ship_flags & CREW_IMMUNE) ?
|
(ShipInfoPtr->ship_flags & CREW_IMMUNE) ?
|
||||||
ROBOT_UNIT_COLOR : CREW_UNIT_COLOR);
|
ROBOT_UNIT_COLOR : CREW_UNIT_COLOR);
|
||||||
@@ -375,7 +379,7 @@ DeltaStatistics (STARSHIPPTR StarShipPtr, SIZE crew_delta, SIZE
|
|||||||
ShipInfoPtr->crew_level == 0) && newCrewLevel != 0)
|
ShipInfoPtr->crew_level == 0) && newCrewLevel != 0)
|
||||||
{
|
{
|
||||||
// The block indicating the captain needs to change color.
|
// The block indicating the captain needs to change color.
|
||||||
#define PLAYER_UNIT_COLOR BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09)
|
#define PLAYER_UNIT_COLOR BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09)
|
||||||
SetContextForeGroundColor (
|
SetContextForeGroundColor (
|
||||||
(newCrewLevel > MAX_CREW_SIZE) ?
|
(newCrewLevel > MAX_CREW_SIZE) ?
|
||||||
CREW_UNIT_COLOR : PLAYER_UNIT_COLOR);
|
CREW_UNIT_COLOR : PLAYER_UNIT_COLOR);
|
||||||
|
|||||||
+10
-10
@@ -218,14 +218,14 @@ DrawRaceStrings (BYTE NewRaceItem)
|
|||||||
r.extent.height = 11;
|
r.extent.height = 11;
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
ClearSISRect (CLEAR_SIS_RADAR);
|
ClearSISRect (CLEAR_SIS_RADAR);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
r.corner = s.origin;
|
r.corner = s.origin;
|
||||||
r.extent.width = RADAR_WIDTH;
|
r.extent.width = RADAR_WIDTH;
|
||||||
r.extent.height = RADAR_HEIGHT;
|
r.extent.height = RADAR_HEIGHT;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x00), 0x00));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
if (NewRaceItem != (BYTE)~0)
|
if (NewRaceItem != (BYTE)~0)
|
||||||
{
|
{
|
||||||
@@ -258,8 +258,8 @@ DrawRaceStrings (BYTE NewRaceItem)
|
|||||||
t.pStr = buf;
|
t.pStr = buf;
|
||||||
sprintf (buf, "%u", ShipCost[NewRaceItem]);
|
sprintf (buf, "%u", ShipCost[NewRaceItem]);
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (
|
SetContextForeGroundColor (
|
||||||
0x00, 0x1F, 0x00), 0x02));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1F, 0x00), 0x02));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
}
|
}
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
@@ -1060,8 +1060,8 @@ DrawBluePrint (PMENU_STATE pMS)
|
|||||||
|
|
||||||
s.origin.x = s.origin.y = 0;
|
s.origin.x = s.origin.y = 0;
|
||||||
s.frame = DecFrameIndex (pMS->ModuleFrame);
|
s.frame = DecFrameIndex (pMS->ModuleFrame);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0x00, 0x00, 0x16), 0x01));
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x16), 0x01));
|
||||||
DrawFilledStamp (&s);
|
DrawFilledStamp (&s);
|
||||||
|
|
||||||
for (num_frames = 0; num_frames < NUM_DRIVE_SLOTS; ++num_frames)
|
for (num_frames = 0; num_frames < NUM_DRIVE_SLOTS; ++num_frames)
|
||||||
@@ -1084,8 +1084,8 @@ DrawBluePrint (PMENU_STATE pMS)
|
|||||||
DrawShipPiece (pMS, which_piece, num_frames, TRUE);
|
DrawShipPiece (pMS, which_piece, num_frames, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (
|
SetContextForeGroundColor (
|
||||||
MAKE_RGB15 (0xA, 0xA, 0x1F), 0x09));
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x1F), 0x09));
|
||||||
for (num_frames = 0; num_frames < NUM_MODULE_SLOTS; ++num_frames)
|
for (num_frames = 0; num_frames < NUM_MODULE_SLOTS; ++num_frames)
|
||||||
{
|
{
|
||||||
BYTE which_piece;
|
BYTE which_piece;
|
||||||
|
|||||||
+55
-38
@@ -49,7 +49,8 @@ RepairSISBorder (void)
|
|||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.corner.x += (SIS_SCREEN_WIDTH + 2) - 1;
|
r.corner.x += (SIS_SCREEN_WIDTH + 2) - 1;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
@@ -71,7 +72,8 @@ ClearSISRect (BYTE ClearFlags)
|
|||||||
CONTEXT OldContext;
|
CONTEXT OldContext;
|
||||||
|
|
||||||
OldContext = SetContext (StatusContext);
|
OldContext = SetContext (StatusContext);
|
||||||
OldColor = SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
OldColor = SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
|
|
||||||
r.corner.x = 2;
|
r.corner.x = 2;
|
||||||
r.extent.width = STATUS_WIDTH - 4;
|
r.extent.width = STATUS_WIDTH - 4;
|
||||||
@@ -95,8 +97,8 @@ ClearSISRect (BYTE ClearFlags)
|
|||||||
|
|
||||||
DrawStarConBox (&r, 1,
|
DrawStarConBox (&r, 1,
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
TRUE, BUILD_COLOR (MAKE_RGB15 (0x00, 0xE, 0x00), 0x6C));
|
TRUE, BUILD_COLOR (MAKE_RGB15 (0x00, 0x0E, 0x00), 0x6C));
|
||||||
#endif /* NEVER */
|
#endif /* NEVER */
|
||||||
}
|
}
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
@@ -131,9 +133,11 @@ SetContextClipRect (&r);
|
|||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
|
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x1B), 0x33));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x1B), 0x33));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
|
|
||||||
@@ -357,7 +361,8 @@ DrawStatusMessage (const UNICODE *pStr)
|
|||||||
SetContextClipRect (&r);
|
SetContextClipRect (&r);
|
||||||
|
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
SetContextBackGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x8, 0x00), 0x6E));
|
SetContextBackGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x08, 0x00), 0x6E));
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
|
|
||||||
if (pStr == (UNICODE *)~0)
|
if (pStr == (UNICODE *)~0)
|
||||||
@@ -396,7 +401,8 @@ DrawStatusMessage (const UNICODE *pStr)
|
|||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
|
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x10, 0x00), 0x6B));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x10, 0x00), 0x6B));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
UnbatchGraphics ();
|
UnbatchGraphics ();
|
||||||
|
|
||||||
@@ -416,7 +422,8 @@ DrawCaptainsName (void)
|
|||||||
|
|
||||||
OldContext = SetContext (StatusContext);
|
OldContext = SetContext (StatusContext);
|
||||||
OldFont = SetContextFont (TinyFont);
|
OldFont = SetContextFont (TinyFont);
|
||||||
OldColor = SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
OldColor = SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
|
|
||||||
r.corner.x = 2 + 1;
|
r.corner.x = 2 + 1;
|
||||||
r.corner.y = 10;
|
r.corner.y = 10;
|
||||||
@@ -429,7 +436,8 @@ DrawCaptainsName (void)
|
|||||||
t.align = ALIGN_CENTER;
|
t.align = ALIGN_CENTER;
|
||||||
t.pStr = GLOBAL_SIS (CommanderName);
|
t.pStr = GLOBAL_SIS (CommanderName);
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x16, 0xB, 0x1F), 0x38));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x16, 0x0B, 0x1F), 0x38));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
SetContextForeGroundColor (OldColor);
|
SetContextForeGroundColor (OldColor);
|
||||||
@@ -488,7 +496,8 @@ DrawFlagshipName (BOOLEAN InStatusArea)
|
|||||||
SetContextFontEffect (SetAbsFrameIndex (FontGradFrame,
|
SetContextFontEffect (SetAbsFrameIndex (FontGradFrame,
|
||||||
InStatusArea ? 0 : 3));
|
InStatusArea ? 0 : 3));
|
||||||
else
|
else
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x14, 0x0A, 0x00), 0x0C));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x14, 0x0A, 0x00), 0x0C));
|
||||||
|
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
@@ -745,7 +754,8 @@ DrawStorageBays (BOOLEAN Refresh)
|
|||||||
|
|
||||||
r.corner.x = (STATUS_WIDTH >> 1)
|
r.corner.x = (STATUS_WIDTH >> 1)
|
||||||
- ((i * (r.extent.width + 1)) >> 1);
|
- ((i * (r.extent.width + 1)) >> 1);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
for (j = GLOBAL_SIS (TotalElementMass);
|
for (j = GLOBAL_SIS (TotalElementMass);
|
||||||
j >= STORAGE_BAY_CAPACITY; j -= STORAGE_BAY_CAPACITY)
|
j >= STORAGE_BAY_CAPACITY; j -= STORAGE_BAY_CAPACITY)
|
||||||
{
|
{
|
||||||
@@ -764,7 +774,8 @@ DrawStorageBays (BOOLEAN Refresh)
|
|||||||
if (r.extent.height)
|
if (r.extent.height)
|
||||||
{
|
{
|
||||||
r.corner.y = 123;
|
r.corner.y = 123;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x6, 0x6, 0x6), 0x20));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x06, 0x06), 0x20));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
}
|
}
|
||||||
r.corner.x += r.extent.width + 1;
|
r.corner.x += r.extent.width + 1;
|
||||||
@@ -773,7 +784,8 @@ DrawStorageBays (BOOLEAN Refresh)
|
|||||||
}
|
}
|
||||||
r.extent.height = 4;
|
r.extent.height = 4;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x6, 0x6, 0x6), 0x20));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x06, 0x06, 0x06), 0x20));
|
||||||
while (i--)
|
while (i--)
|
||||||
{
|
{
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
@@ -829,9 +841,11 @@ DrawPC_SIS (void)
|
|||||||
r.corner.y = 3;
|
r.corner.y = 3;
|
||||||
r.extent.width = 58;
|
r.extent.width = 58;
|
||||||
r.extent.height = 7;
|
r.extent.height = 7;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x00, 0x14), 0x01));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x02, 0x04, 0x1E), 0x38));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x02, 0x04, 0x1E), 0x38));
|
||||||
t.baseline.y = r.corner.y + 6;
|
t.baseline.y = r.corner.y + 6;
|
||||||
t.pStr = GAME_STRING (STATUS_STRING_BASE + 5); // "CAPTAIN"
|
t.pStr = GAME_STRING (STATUS_STRING_BASE + 5); // "CAPTAIN"
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
@@ -979,7 +993,8 @@ DeltaSISGauges (SIZE crew_delta, SIZE fuel_delta, int resunit_delta)
|
|||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0xE, 0x00), 0x6C));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0E, 0x00), 0x6C));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1015,7 +1030,8 @@ DeltaSISGauges (SIZE crew_delta, SIZE fuel_delta, int resunit_delta)
|
|||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2C));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2C));
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1046,7 +1062,8 @@ DeltaSISGauges (SIZE crew_delta, SIZE fuel_delta, int resunit_delta)
|
|||||||
r.corner.y = 130;
|
r.corner.y = 130;
|
||||||
r.extent.width = STATUS_MESSAGE_WIDTH;
|
r.extent.width = STATUS_MESSAGE_WIDTH;
|
||||||
r.extent.height = STATUS_MESSAGE_HEIGHT;
|
r.extent.height = STATUS_MESSAGE_HEIGHT;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x00, 0x8, 0x00), 0x6E));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x08, 0x00), 0x6E));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
if ((pMenuState == 0
|
if ((pMenuState == 0
|
||||||
@@ -1093,16 +1110,16 @@ GetCPodCapacity (PPOINT ppt)
|
|||||||
COUNT pod_remainder, which_row;
|
COUNT pod_remainder, which_row;
|
||||||
COLOR crew_rows[] =
|
COLOR crew_rows[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1E,0x09), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1E, 0x09), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1E,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1E, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1B,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1B, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x18,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x18, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x15,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x15, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x12,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x12, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x10,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x10, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0D,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0D, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0A,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0A, 0x00), 0x65),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x00, 0x07,0x00), 0x65),
|
BUILD_COLOR (MAKE_RGB15 (0x00, 0x07, 0x00), 0x65),
|
||||||
};
|
};
|
||||||
|
|
||||||
pod_remainder = GLOBAL_SIS (CrewEnlisted) - capacity;
|
pod_remainder = GLOBAL_SIS (CrewEnlisted) - capacity;
|
||||||
@@ -1155,10 +1172,10 @@ GetSBayCapacity (PPOINT ppt)
|
|||||||
BUILD_COLOR (MAKE_RGB15 (0x15, 0x15, 0x15), 0x15),
|
BUILD_COLOR (MAKE_RGB15 (0x15, 0x15, 0x15), 0x15),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x12, 0x12, 0x12), 0x17),
|
BUILD_COLOR (MAKE_RGB15 (0x12, 0x12, 0x12), 0x17),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xD, 0xD, 0xD), 0x1B),
|
BUILD_COLOR (MAKE_RGB15 (0x0D, 0x0D, 0x0D), 0x1B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x1D),
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x1D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F),
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x5, 0x5, 0x5), 0x21),
|
BUILD_COLOR (MAKE_RGB15 (0x05, 0x05, 0x05), 0x21),
|
||||||
};
|
};
|
||||||
|
|
||||||
bay_remainder = GLOBAL_SIS (TotalElementMass) - capacity;
|
bay_remainder = GLOBAL_SIS (TotalElementMass) - capacity;
|
||||||
@@ -1207,14 +1224,14 @@ GetFTankCapacity (PPOINT ppt)
|
|||||||
COUNT which_row;
|
COUNT which_row;
|
||||||
COLOR fuel_colors[] =
|
COLOR fuel_colors[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2D),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2C),
|
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2C),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2A),
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2A),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x3, 0x00), 0x7F),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x03, 0x00), 0x7F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x7, 0x00), 0x7E),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x07, 0x00), 0x7E),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0x00), 0x7D),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x00), 0x7D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xE, 0x00), 0x7C),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0E, 0x00), 0x7C),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x15, 0x00), 0x7A),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x15, 0x00), 0x7A),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x18, 0x00), 0x79),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x18, 0x00), 0x79),
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ DrawBaseStateStrings (STARBASE_STATE OldState, STARBASE_STATE NewState)
|
|||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E));
|
||||||
t.baseline.y = 106 + 28 + (SAFE_Y + 4) + ((23 - 4) * NewState);
|
t.baseline.y = 106 + 28 + (SAFE_Y + 4) + ((23 - 4) * NewState);
|
||||||
t.pStr = GAME_STRING (STARBASE_STRING_BASE + 1 + NewState);
|
t.pStr = GAME_STRING (STARBASE_STRING_BASE + 1 + NewState);
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
|
|||||||
+23
-17
@@ -139,7 +139,8 @@ DrawBattleCrewAmount (STARSHIPPTR StarShipPtr)
|
|||||||
sprintf (buf, "%u", StarShipPtr->RaceDescPtr->ship_info.crew_level);
|
sprintf (buf, "%u", StarShipPtr->RaceDescPtr->ship_info.crew_level);
|
||||||
SetContextFont (StarConFont);
|
SetContextFont (StarConFont);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
SetContextForeGroundColor (BLACK_COLOR);
|
SetContextForeGroundColor (BLACK_COLOR);
|
||||||
font_DrawText (&t);
|
font_DrawText (&t);
|
||||||
@@ -179,12 +180,14 @@ DrawCaptainsWindow (STARSHIPPTR StarShipPtr)
|
|||||||
r.corner.y = y_offs - 4;
|
r.corner.y = y_offs - 4;
|
||||||
r.extent.width = STATUS_WIDTH - CAPTAIN_XOFFS;
|
r.extent.width = STATUS_WIDTH - CAPTAIN_XOFFS;
|
||||||
r.extent.height = SHIP_STATUS_HEIGHT - CAPTAIN_YOFFS + 2;
|
r.extent.height = SHIP_STATUS_HEIGHT - CAPTAIN_YOFFS + 2;
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0xA), 0x08));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x0A, 0x0A), 0x08));
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
y = y_offs - CAPTAIN_YOFFS;
|
y = y_offs - CAPTAIN_YOFFS;
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.corner.x = 1;
|
r.corner.x = 1;
|
||||||
r.corner.y = SHIP_INFO_HEIGHT + y;
|
r.corner.y = SHIP_INFO_HEIGHT + y;
|
||||||
r.extent.width = 1;
|
r.extent.width = 1;
|
||||||
@@ -194,7 +197,8 @@ DrawCaptainsWindow (STARSHIPPTR StarShipPtr)
|
|||||||
++r.extent.height;
|
++r.extent.height;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
||||||
r.corner.x = STATUS_WIDTH - 1;
|
r.corner.x = STATUS_WIDTH - 1;
|
||||||
r.corner.y = SHIP_INFO_HEIGHT + y;
|
r.corner.y = SHIP_INFO_HEIGHT + y;
|
||||||
r.extent.width = 1;
|
r.extent.width = 1;
|
||||||
@@ -213,7 +217,8 @@ DrawCaptainsWindow (STARSHIPPTR StarShipPtr)
|
|||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
{
|
{
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x8, 0x8, 0x8), 0x1F));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x08, 0x08, 0x08), 0x1F));
|
||||||
r.corner.x = 59;
|
r.corner.x = 59;
|
||||||
r.corner.y = y_offs;
|
r.corner.y = y_offs;
|
||||||
r.extent.width = 1;
|
r.extent.width = 1;
|
||||||
@@ -225,7 +230,8 @@ DrawCaptainsWindow (STARSHIPPTR StarShipPtr)
|
|||||||
r.extent.height = 1;
|
r.extent.height = 1;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
|
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
SetContextForeGroundColor (
|
||||||
|
BUILD_COLOR (MAKE_RGB15 (0x10, 0x10, 0x10), 0x19));
|
||||||
r.corner.x = 3;
|
r.corner.x = 3;
|
||||||
r.extent.width = 57;
|
r.extent.width = 57;
|
||||||
r.corner.y = y_offs - 1;
|
r.corner.y = y_offs - 1;
|
||||||
@@ -418,7 +424,7 @@ PostProcessStatus (PELEMENT ShipPtr)
|
|||||||
{
|
{
|
||||||
COLOR flash_tab0[] =
|
COLOR flash_tab0[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2D),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x19, 0x19), 0x24),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x19, 0x19), 0x24),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1C, 0x00), 0x78),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1C, 0x00), 0x78),
|
||||||
@@ -440,20 +446,20 @@ PostProcessStatus (PELEMENT ShipPtr)
|
|||||||
COLOR flash_tab1[] =
|
COLOR flash_tab1[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1E, 0x1F, 0x12), 0x70),
|
BUILD_COLOR (MAKE_RGB15 (0x1E, 0x1F, 0x12), 0x70),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0xA), 0x0E),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x0A), 0x0E),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x00), 0x71),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1F, 0x00), 0x71),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1C, 0x00), 0x78),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x1C, 0x00), 0x78),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x18, 0x00), 0x79),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x18, 0x00), 0x79),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x15, 0x00), 0x7A),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x15, 0x00), 0x7A),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x11, 0x00), 0x7B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xE, 0x00), 0x7C),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0E, 0x00), 0x7C),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0xA, 0x00), 0x7D),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x0A, 0x00), 0x7D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x7, 0x00), 0x7E),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x07, 0x00), 0x7E),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x3, 0x00), 0x7F),
|
BUILD_COLOR (MAKE_RGB15 (0x1F, 0x03, 0x00), 0x7F),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2A),
|
BUILD_COLOR (MAKE_RGB15 (0x1B, 0x00, 0x00), 0x2A),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2C),
|
BUILD_COLOR (MAKE_RGB15 (0x13, 0x00, 0x00), 0x2C),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2D),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2D),
|
||||||
};
|
};
|
||||||
|
|
||||||
c = flash_tab1[i];
|
c = flash_tab1[i];
|
||||||
@@ -484,7 +490,7 @@ PostProcessStatus (PELEMENT ShipPtr)
|
|||||||
case 1:
|
case 1:
|
||||||
r.corner.x = CAPTAIN_XOFFS + 16;
|
r.corner.x = CAPTAIN_XOFFS + 16;
|
||||||
i = CAPTAIN_WIDTH - ((17 + 1) << 1);
|
i = CAPTAIN_WIDTH - ((17 + 1) << 1);
|
||||||
c = BUILD_COLOR (MAKE_RGB15 (0x7, 0x00, 0x00), 0x2F);
|
c = BUILD_COLOR (MAKE_RGB15 (0x07, 0x00, 0x00), 0x2F);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
r.corner.x = CAPTAIN_XOFFS + 18;
|
r.corner.x = CAPTAIN_XOFFS + 18;
|
||||||
@@ -500,7 +506,7 @@ PostProcessStatus (PELEMENT ShipPtr)
|
|||||||
r.corner.x = CAPTAIN_XOFFS + 25;
|
r.corner.x = CAPTAIN_XOFFS + 25;
|
||||||
i = 1;
|
i = 1;
|
||||||
r.extent.width = 2;
|
r.extent.width = 2;
|
||||||
c = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x50, 0x5), 0x28);
|
c = BUILD_COLOR (MAKE_RGB15 (0x1F, 0x50, 0x05), 0x28);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Should not happen.
|
// Should not happen.
|
||||||
@@ -522,8 +528,8 @@ PostProcessStatus (PELEMENT ShipPtr)
|
|||||||
COLOR flash_tab2[] =
|
COLOR flash_tab2[] =
|
||||||
{
|
{
|
||||||
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
BUILD_COLOR (MAKE_RGB15 (0x17, 0x00, 0x00), 0x2B),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xF, 0x00, 0x00), 0x2D),
|
BUILD_COLOR (MAKE_RGB15 (0x0F, 0x00, 0x00), 0x2D),
|
||||||
BUILD_COLOR (MAKE_RGB15 (0xB, 0x00, 0x00), 0x2E),
|
BUILD_COLOR (MAKE_RGB15 (0x0B, 0x00, 0x00), 0x2E),
|
||||||
};
|
};
|
||||||
|
|
||||||
c = flash_tab2[i];
|
c = flash_tab2[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user