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

Function UpdateInitMessage

Descent3/init.cpp:1662–1673  ·  view source on GitHub ↗

amount is 0 to 1

Source from the content-addressed store, hash-verified

1660
1661// amount is 0 to 1
1662void UpdateInitMessage(float amount) {
1663 if (Init_in_editor)
1664 return;
1665 InitMessage(Init_messagebar_text, (amount * Init_messagebar_portion) + Init_messagebar_offset);
1666 /*
1667 mprintf(0, "amt=%.2f, portion=%.2f offs=%.2f, prog=%.2f\n",
1668 amount,
1669 Init_messagebar_portion,
1670 Init_messagebar_offset,
1671 (amount*Init_messagebar_portion)+Init_messagebar_offset);
1672 */
1673}
1674
1675void InitMessage(const char *c, float progress) {
1676 int x = Game_window_w / 2 - Title_bitmap.pw / 2;

Callers 2

TelcomPageAllInFunction · 0.85
InitD3Systems2Function · 0.85

Calls 1

InitMessageFunction · 0.85

Tested by

no test coverage detected