This is the function called by TelCom return true if TelCom should exit to TelCom Main Menu return false if you should exit out of TelCom completly
| 667 | // return true if TelCom should exit to TelCom Main Menu |
| 668 | // return false if you should exit out of TelCom completly |
| 669 | bool TelComGoalStatus(tTelComInfo *tcs) { |
| 670 | bool done = false; |
| 671 | |
| 672 | TelcomStartScreen(0); |
| 673 | |
| 674 | TCBKGDESC backg; |
| 675 | backg.color = BACKGROUND_COLOR; |
| 676 | backg.caps = TCBGD_COLOR; |
| 677 | backg.type = TC_BACK_STATIC; |
| 678 | CreateBackgroundEffect(&backg, MONITOR_MAIN, 0); |
| 679 | CreateBackgroundEffect(&backg, MONITOR_TOP, 0); |
| 680 | |
| 681 | TCBMPDESC bmpdesc; |
| 682 | bmpdesc.type = TC_BMP_STATIC; |
| 683 | bmpdesc.flags = 0; |
| 684 | bmpdesc.caps = TCBD_XY; |
| 685 | bmpdesc.x = 0; |
| 686 | bmpdesc.y = 0; |
| 687 | strcpy(bmpdesc.filename, "TelcomGoalBkg.ogf"); |
| 688 | CreateBitmapEffect(&bmpdesc, MONITOR_MAIN, 0); |
| 689 | /* |
| 690 | $$TABLE_GAMEFILE "TelcomGoalBkg.ogf" |
| 691 | */ |
| 692 | |
| 693 | TGminx = tcs->Monitor_coords[MONITOR_MAIN].left + 10; |
| 694 | TGminy = tcs->Monitor_coords[MONITOR_MAIN].top + 10; |
| 695 | TGmaxy = tcs->Monitor_coords[MONITOR_MAIN].bottom - 10; |
| 696 | TGmaxx = tcs->Monitor_coords[MONITOR_MAIN].right - 10; |
| 697 | TG_Lines = NULL; |
| 698 | TG_SortedList = NULL; |
| 699 | TG_NumLines = 0; |
| 700 | memset(&TG_TT_dest, 0, sizeof(tToolTipData)); |
| 701 | memset(&TG_TT_curr, 0, sizeof(tToolTipData)); |
| 702 | |
| 703 | int bm_handle = bm_AllocLoadFileBitmap("TelcomToolTip.ogf", 0); |
| 704 | if (bm_handle <= BAD_BITMAP_HANDLE) { |
| 705 | bm_handle = bm_AllocBitmap(32, 32, 0); |
| 706 | if (bm_handle > BAD_BITMAP_HANDLE) { |
| 707 | uint16_t *data = bm_data(bm_handle, 0); |
| 708 | for (int i = 0; i < 1024; i++) { |
| 709 | data[i] = GR_RGB16(0, 0, 0) | OPAQUE_FLAG; |
| 710 | } |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | bm_CreateChunkedBitmap(bm_handle, &TG_Tooltipbitmap); |
| 715 | |
| 716 | TCTEXTDESC textdesc; |
| 717 | textdesc.type = TC_TEXT_STATIC; |
| 718 | textdesc.font = BG_FONT; |
| 719 | textdesc.caps = TCTD_TEXTBOX | TCTD_COLOR | TCTD_FONT; |
| 720 | textdesc.textbox.left = 0; |
| 721 | textdesc.textbox.right = 380; |
| 722 | textdesc.textbox.top = 4; |
| 723 | textdesc.textbox.bottom = 50; |
| 724 | textdesc.color = GR_RGB(255, 255, 255); |
| 725 | |
| 726 | CreateTextEffect(&textdesc, TXT_GOALSTATUSHEADING, MONITOR_TOP, 0); |
no test coverage detected