MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / TelcomCreateDummyScreen

Function TelcomCreateDummyScreen

Descent3/TelCom.cpp:1564–1600  ·  view source on GitHub ↗

Creates a placeholder screen that can be used if no screens are available

Source from the content-addressed store, hash-verified

1562
1563// Creates a placeholder screen that can be used if no screens are available
1564void TelcomCreateDummyScreen(void) {
1565 TelcomStartScreen(DUMMY_SCREEN);
1566
1567 TCBKGDESC backg;
1568 backg.color = BACKGROUND_COLOR;
1569 backg.caps = TCBGD_COLOR;
1570 backg.type = TC_BACK_STATIC;
1571 TCBMPDESC bmpdesc;
1572 bmpdesc.caps = 0;
1573 bmpdesc.type = TC_BMP_STATIC;
1574 bmpdesc.flags = 0;
1575 strcpy(bmpdesc.filename, "TelComInit.ogf");
1576 /*
1577 $$TABLE_GAMEFILE "TelComInit.ogf"
1578 */
1579 TCTEXTDESC textdesc;
1580 textdesc.type = TC_TEXT_FADE;
1581 textdesc.flags = TC_TEXTF_IN;
1582 textdesc.speed = 1.0f;
1583 textdesc.font = BBRIEF_FONT_INDEX;
1584 textdesc.caps = TCTD_TEXTBOX | TCTD_COLOR | TCTD_SPEED | TCTD_FONT;
1585 textdesc.textbox.left = 25;
1586 textdesc.textbox.right = 540;
1587 textdesc.textbox.top = 113;
1588 textdesc.textbox.bottom = 260;
1589 textdesc.color = GR_RGB(255, 255, 255);
1590
1591 CreateBitmapEffect(&bmpdesc, MONITOR_MAIN, DUMMY_SCREEN);
1592#ifdef DEMO
1593 // CreateTextEffect(&textdesc,TXT_TCINITIALIZING,MONITOR_MAIN,DUMMY_SCREEN);
1594#else
1595 CreateTextEffect(&textdesc, TXT_TCPLEASEWAIT, MONITOR_MAIN, DUMMY_SCREEN);
1596#endif
1597 CreateBackgroundEffect(&backg, MONITOR_TOP, DUMMY_SCREEN);
1598
1599 TelcomEndScreen();
1600}
1601
1602// Creates a placeholder screen that can be used for startup
1603void TelcomCreateStartupScreen(void) {

Callers 2

TelcomRenderInitFunction · 0.85
ParseBriefingFunction · 0.85

Calls 6

TelcomStartScreenFunction · 0.85
CreateBitmapEffectFunction · 0.85
CreateTextEffectFunction · 0.85
CreateBackgroundEffectFunction · 0.85
TelcomEndScreenFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected