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

Function TelcomCreateStartupScreen

Descent3/TelCom.cpp:1603–1635  ·  view source on GitHub ↗

Creates a placeholder screen that can be used for startup

Source from the content-addressed store, hash-verified

1601
1602// Creates a placeholder screen that can be used for startup
1603void TelcomCreateStartupScreen(void) {
1604 TelcomStartScreen(DUMMY_SCREEN);
1605
1606 TCBKGDESC backg;
1607 backg.color = BACKGROUND_COLOR;
1608 backg.caps = TCBGD_COLOR;
1609 backg.type = TC_BACK_STATIC;
1610 TCBMPDESC bmpdesc;
1611 bmpdesc.caps = 0;
1612 bmpdesc.type = TC_BMP_STATIC;
1613 bmpdesc.flags = 0;
1614 strcpy(bmpdesc.filename, "TelComInit.ogf");
1615 /*
1616 $$TABLE_GAMEFILE "TelComInit.ogf"
1617 */
1618 TCTEXTDESC textdesc;
1619 textdesc.type = TC_TEXT_FADE;
1620 textdesc.flags = TC_TEXTF_IN;
1621 textdesc.speed = 1.0f;
1622 textdesc.font = BBRIEF_FONT_INDEX;
1623 textdesc.caps = TCTD_TEXTBOX | TCTD_COLOR | TCTD_SPEED | TCTD_FONT;
1624 textdesc.textbox.left = 25;
1625 textdesc.textbox.right = 280;
1626 textdesc.textbox.top = 113;
1627 textdesc.textbox.bottom = 260;
1628 textdesc.color = GR_RGB(255, 255, 255);
1629
1630 CreateBitmapEffect(&bmpdesc, MONITOR_MAIN, DUMMY_SCREEN);
1631 CreateTextEffect(&textdesc, TXT_TCPLEASEWAIT, MONITOR_MAIN, DUMMY_SCREEN);
1632 CreateBackgroundEffect(&backg, MONITOR_TOP, DUMMY_SCREEN);
1633
1634 TelcomEndScreen();
1635}
1636
1637// Creates a placeholder screen that can be used for shutdown
1638void TelcomCreateShutdownScreen(void) {

Callers 1

TelComMainFunction · 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