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

Function TCMainMenuRenderCallback

Descent3/TelCom.cpp:1124–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122
1123void TCMainMenuCallback(int efxnum) { mainmenu_system = efxnum; }
1124void TCMainMenuRenderCallback(void) {
1125 grtext_SetFont(BIG_BRIEFING_FONT);
1126 grtext_SetColor(GR_RGB(255, 255, 255));
1127 grtext_SetAlpha(255);
1128
1129 int mm_y, mm_x;
1130 mm_y = Telcom_system.Monitor_coords[MONITOR_MAIN].top + BOFF_T + MM_BUTTONY;
1131 mm_x = Telcom_system.Monitor_coords[MONITOR_MAIN].left + BOFF_L + MM_BUTTONX;
1132
1133 for (int i = 0; i < TCMAX_MMBUTTONS; i++) {
1134 if (MMButtons[i].enabled) {
1135 // draw the button text
1136 grtext_Printf(mm_x, mm_y, MMButtons[i].text);
1137
1138 // adjust y value
1139 mm_y += MM_BUTTONOFFSET;
1140 }
1141 }
1142}
1143
1144// Main menu
1145bool TelComMainMenu(tTelComInfo *tcs) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected