Graduated colours for crew in shipyard, from Nic.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@746 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-02-12 23:19:08 +00:00
parent 36606064e5
commit d94fd65ce9
2 changed files with 20 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.2:
- Graduated colours for crew in shipyard, from Nic
- Alien dialog fixes: Talking Pet, Utwig, Mycon, Syreen -fOSSiL
- Updated all game, menu, melee and weapon sounds to original 3DO
ones (extracted using various tools); some sounds were simply
+19 -4
View File
@@ -980,6 +980,19 @@ GetCPodCapacity (PPOINT ppt)
GLOBAL_SIS (CrewEnlisted))
{
COUNT pod_remainder, which_row;
COLOR crew_rows[] =
{
BUILD_COLOR (MAKE_RGB15 (0x0A, 0x1E,0x09), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1E,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x1B,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x18,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x15,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x12,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x10,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0D,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x0A,0x00), 0x65),
BUILD_COLOR (MAKE_RGB15 (0x00, 0x07,0x00), 0x65),
};
pod_remainder = GLOBAL_SIS (CrewEnlisted) - capacity;
@@ -987,10 +1000,12 @@ GetCPodCapacity (PPOINT ppt)
which_row = pod_remainder / CREW_PER_ROW;
ppt->y = 34 - (which_row << 1);
// For Now.
SetContextForeGroundColor (
BUILD_COLOR (MAKE_RGB15 (0x05, 0x10, 0x05), 0x65)
);
if (optWhichFonts == OPT_PC)
SetContextForeGroundColor (crew_rows[which_row]);
else
SetContextForeGroundColor (
BUILD_COLOR (MAKE_RGB15 (0x05, 0x10, 0x05), 0x65)
);
}
capacity += CREW_POD_CAPACITY;