slayne's fixes (planetary reports, melee team names, saving in planet
scan) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@324 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -58,7 +58,7 @@ DrawMeleeFrame (STARSHIPPTR LastStarShipPtr, COUNT which_player)
|
|||||||
r.extent.height = NAME_AREA_HEIGHT;
|
r.extent.height = NAME_AREA_HEIGHT;
|
||||||
DrawFilledRectangle (&r);
|
DrawFilledRectangle (&r);
|
||||||
t.align = ALIGN_CENTER;
|
t.align = ALIGN_CENTER;
|
||||||
t.pStr = pMeleeState->TeamImage[which_player].TeamName;
|
t.pStr = pMeleeState->TeamImage[1 - which_player].TeamName;
|
||||||
t.CharCount = (COUNT)~0;
|
t.CharCount = (COUNT)~0;
|
||||||
SetContextFont (TinyFont);
|
SetContextFont (TinyFont);
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x9));
|
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0xA, 0xA, 0x1F), 0x9));
|
||||||
|
|||||||
@@ -1171,6 +1171,7 @@ DoFlagshipCommands (INPUT_STATE InputState, PMENU_STATE pMS)
|
|||||||
NewState = pMS->CurState;
|
NewState = pMS->CurState;
|
||||||
if ((InputState & DEVICE_BUTTON1) || LastActivity == CHECK_LOAD)
|
if ((InputState & DEVICE_BUTTON1) || LastActivity == CHECK_LOAD)
|
||||||
{
|
{
|
||||||
|
CONTEXT OldContext;
|
||||||
if (NewState != SCAN + 1 && NewState != (ROSTER + 1) + 1)
|
if (NewState != SCAN + 1 && NewState != (ROSTER + 1) + 1)
|
||||||
{
|
{
|
||||||
SetSemaphore (GraphicsSem);
|
SetSemaphore (GraphicsSem);
|
||||||
@@ -1219,6 +1220,22 @@ DoFlagshipCommands (INPUT_STATE InputState, PMENU_STATE pMS)
|
|||||||
case ROSTER + 1:
|
case ROSTER + 1:
|
||||||
if (GameOptions () == 0)
|
if (GameOptions () == 0)
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
|
||||||
|
|
||||||
|
ClearSISRect(DRAW_SIS_DISPLAY);
|
||||||
|
DrawSISFrame();
|
||||||
|
RepairSISBorder();
|
||||||
|
DrawSISMessage(NULL_PTR);
|
||||||
|
DrawSISTitle(GLOBAL_SIS(PlanetName));
|
||||||
|
DrawStarBackGround(TRUE);
|
||||||
|
OldContext = SetContext(SpaceContext);
|
||||||
|
SetContextDrawState(DEST_PIXMAP | DRAW_REPLACE);
|
||||||
|
SetSemaphore(GraphicsSem);
|
||||||
|
BatchGraphics();
|
||||||
|
DrawPlanet(SIS_SCREEN_WIDTH - MAP_WIDTH, SIS_SCREEN_HEIGHT - MAP_HEIGHT, 0, 0);
|
||||||
|
UnbatchGraphics();
|
||||||
|
SetContext(OldContext);
|
||||||
|
ClearSemaphore(GraphicsSem);
|
||||||
// else
|
// else
|
||||||
// DrawMenuStateStrings (PM_SCAN, ROSTER + 1);
|
// DrawMenuStateStrings (PM_SCAN, ROSTER + 1);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
extern FRAME SpaceJunkFrame;
|
extern FRAME SpaceJunkFrame;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ClearReportArea (COUNT page_cells)
|
ClearReportArea ()
|
||||||
{
|
{
|
||||||
COUNT i;
|
COUNT i;
|
||||||
RECT r;
|
RECT r;
|
||||||
@@ -48,11 +48,8 @@ ClearReportArea (COUNT page_cells)
|
|||||||
}
|
}
|
||||||
SetPrimNextLink (&prim_row[i - 1], END_OF_LIST);
|
SetPrimNextLink (&prim_row[i - 1], END_OF_LIST);
|
||||||
|
|
||||||
if (page_cells == 0)
|
|
||||||
{
|
|
||||||
SetContextBackGroundColor (BLACK_COLOR);
|
SetContextBackGroundColor (BLACK_COLOR);
|
||||||
ClearDrawable ();
|
ClearDrawable ();
|
||||||
}
|
|
||||||
SetContextClipping (FALSE);
|
SetContextClipping (FALSE);
|
||||||
for (i = 0; i < NUM_CELL_ROWS; ++i)
|
for (i = 0; i < NUM_CELL_ROWS; ++i)
|
||||||
{
|
{
|
||||||
@@ -71,7 +68,7 @@ MakeReport (SOUND ReadOutSounds, UNICODE *pStr, COUNT StrLen)
|
|||||||
BYTE ButtonState;
|
BYTE ButtonState;
|
||||||
int end_page_len;
|
int end_page_len;
|
||||||
UNICODE last_c, end_page_buf[80];
|
UNICODE last_c, end_page_buf[80];
|
||||||
COUNT row_cells, page_cells;
|
COUNT row_cells;
|
||||||
BOOLEAN Sleepy;
|
BOOLEAN Sleepy;
|
||||||
RECT r;
|
RECT r;
|
||||||
TEXT t;
|
TEXT t;
|
||||||
@@ -87,7 +84,6 @@ MakeReport (SOUND ReadOutSounds, UNICODE *pStr, COUNT StrLen)
|
|||||||
last_c = *pStr;
|
last_c = *pStr;
|
||||||
|
|
||||||
Sleepy = TRUE;
|
Sleepy = TRUE;
|
||||||
page_cells = 0;
|
|
||||||
ClearSemaphore (GraphicsSem);
|
ClearSemaphore (GraphicsSem);
|
||||||
|
|
||||||
FlushInput ();
|
FlushInput ();
|
||||||
@@ -198,7 +194,7 @@ InitPageCell:
|
|||||||
SetSemaphore (GraphicsSem);
|
SetSemaphore (GraphicsSem);
|
||||||
if (!Sleepy)
|
if (!Sleepy)
|
||||||
BatchGraphics ();
|
BatchGraphics ();
|
||||||
ClearReportArea (page_cells++);
|
ClearReportArea();
|
||||||
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0, 0x1F, 0), 0xFF));
|
SetContextForeGroundColor (BUILD_COLOR (MAKE_RGB15 (0, 0x1F, 0), 0xFF));
|
||||||
if (Sleepy)
|
if (Sleepy)
|
||||||
ClearSemaphore (GraphicsSem);
|
ClearSemaphore (GraphicsSem);
|
||||||
|
|||||||
Reference in New Issue
Block a user