Expand size of objectives box.

This commit is contained in:
Steve 2018-02-12 19:15:03 +00:00
parent ef9d6db851
commit ca5ce089d2
1 changed files with 5 additions and 4 deletions

View File

@ -213,15 +213,15 @@ void drawMissionStatus(void)
drawRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 64); drawRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 64);
w = 800; w = 800;
h = 500; h = 550;
x = (SCREEN_WIDTH - w) / 2; x = (SCREEN_WIDTH - w) / 2;
drawRect(x, (SCREEN_HEIGHT - h) / 2, w, h, 0, 0, 0, 128); drawRect(x, (SCREEN_HEIGHT - h) / 2, w, h, 0, 0, 0, 128);
drawOutlineRect(x, (SCREEN_HEIGHT - h) / 2, w, h, 255, 255, 255, 200); drawOutlineRect(x, (SCREEN_HEIGHT - h) / 2, w, h, 255, 255, 255, 200);
drawText(SCREEN_WIDTH / 2, 125, 40, TA_CENTER, colors.white, "OBJECTIVES"); drawText(SCREEN_WIDTH / 2, 100, 40, TA_CENTER, colors.white, "OBJECTIVES");
y = 210; y = 180;
for (o = world.objectiveHead.next ; o != NULL ; o = o->next) for (o = world.objectiveHead.next ; o != NULL ; o = o->next)
{ {
@ -244,8 +244,9 @@ void drawMissionStatus(void)
size = 60; size = 60;
mid = size / 2; mid = size / 2;
y = (((SCREEN_HEIGHT - h) / 2) + h) - 165;
x = ((SCREEN_WIDTH - w) / 2) + 90; x = ((SCREEN_WIDTH - w) / 2) + 90;
y = 450;
for (i = 0 ; i < MAX_ITEMS ; i++) for (i = 0 ; i < MAX_ITEMS ; i++)
{ {