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

Function TelcomCreateShutdownScreen

Descent3/TelCom.cpp:1638–1671  ·  view source on GitHub ↗

Creates a placeholder screen that can be used for shutdown

Source from the content-addressed store, hash-verified

1636
1637// Creates a placeholder screen that can be used for shutdown
1638void TelcomCreateShutdownScreen(void) {
1639 TelcomStartScreen(DUMMY_SCREEN);
1640
1641 TCBKGDESC backg;
1642 backg.color = BACKGROUND_COLOR;
1643 backg.caps = TCBGD_COLOR;
1644 backg.type = TC_BACK_STATIC;
1645 TCBMPDESC bmpdesc;
1646 bmpdesc.caps = 0;
1647 bmpdesc.type = TC_BMP_STATIC;
1648 bmpdesc.flags = 0;
1649 strcpy(bmpdesc.filename, "TelComInit.ogf");
1650
1651 /*
1652 $$TABLE_GAMEFILE "TelComInit.ogf"
1653 */
1654 TCTEXTDESC textdesc;
1655 textdesc.type = TC_TEXT_FADE;
1656 textdesc.flags = TC_TEXTF_IN;
1657 textdesc.speed = 1.0f;
1658 textdesc.font = BBRIEF_FONT_INDEX;
1659 textdesc.caps = TCTD_TEXTBOX | TCTD_COLOR | TCTD_SPEED | TCTD_FONT;
1660 textdesc.textbox.left = 25;
1661 textdesc.textbox.right = 280;
1662 textdesc.textbox.top = 113;
1663 textdesc.textbox.bottom = 260;
1664 textdesc.color = GR_RGB(255, 255, 255);
1665
1666 CreateBitmapEffect(&bmpdesc, MONITOR_MAIN, DUMMY_SCREEN);
1667 CreateTextEffect(&textdesc, TXT_TCSHUTDOWN, MONITOR_MAIN, DUMMY_SCREEN);
1668 CreateBackgroundEffect(&backg, MONITOR_TOP, DUMMY_SCREEN);
1669
1670 TelcomEndScreen();
1671}
1672
1673// Enables Static on the Telcom main screen, setting is the probability of static happening
1674void TelcomEnableStatic(float setting) {

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