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

Method CopyrightText

Descent3/mmItem.cpp:421–456  ·  view source on GitHub ↗

displays the copyright text

Source from the content-addressed store, hash-verified

419
420// displays the copyright text
421void mmInterface::CopyrightText() {
422 int i;
423 char type[16];
424 type[0] = 0;
425#ifdef DEMO
426 strcpy(type, "Demo ");
427#endif
428
429 if (PROGRAM(beta))
430 strcpy(type, "Beta ");
431
432#ifdef OEM
433 strcat(type, "OEM ");
434#endif
435
436 if (Program_version.version_type == DEVELOPMENT_VERSION) {
437 strcat(type, "Dev");
438 } else if (Program_version.version_type == RELEASE_VERSION) {
439 strcat(type, "Ver");
440 }
441
442 int x = Max_window_w - 164, y = Max_window_h - 29; // was -128 and -16
443
444 // attempt to print text nicely.
445 grtext_SetFont(BRIEFING_FONT);
446 grtext_SetAlpha(192);
447 grtext_SetColor(GR_RGB(255, 32, 32));
448
449 grtext_Printf(x, y, "%s %d.%d.%d %s", type, Program_version.major,
450 Program_version.minor, Program_version.build, D3_GIT_HASH);
451 grtext_SetFlags(GRTEXTFLAG_SHADOW);
452 grtext_Printf(x, y, "%s %d.%d.%d %s", type, Program_version.major,
453 Program_version.minor, Program_version.build, D3_GIT_HASH);
454
455 grtext_Flush();
456}
457
458void mmInterface::SetMusicRegion(int region) {
459 if (region == -1) {

Callers 1

MenuSceneFunction · 0.80

Calls 7

grtext_SetFontFunction · 0.85
grtext_SetAlphaFunction · 0.85
grtext_SetColorFunction · 0.85
grtext_PrintfFunction · 0.85
grtext_SetFlagsFunction · 0.85
grtext_FlushFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected