MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / MenuOptionsScreen_ContextRecreated

Function MenuOptionsScreen_ContextRecreated

src/MenuOptions.c:497–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497static void MenuOptionsScreen_ContextRecreated(void* screen) {
498 struct MenuOptionsScreen* s = (struct MenuOptionsScreen*)screen;
499 int i;
500 Gui_MakeTitleFont(&s->titleFont);
501 Gui_MakeBodyFont(&s->textFont);
502 Screen_UpdateVb(screen);
503
504 for (i = 0; i < s->numButtons; i++)
505 {
506 if (s->widgets[i]) MenuOptionsScreen_Update(s, &s->buttons[i]);
507 }
508
509 ButtonWidget_SetConst(&s->done, "Done", &s->titleFont);
510 if (s->DoRecreateExtra) s->DoRecreateExtra(s);
511 TextGroupWidget_SetFont(&s->extHelp, &s->textFont);
512 TextGroupWidget_RedrawAll(&s->extHelp); /* TODO: SetFont should redrawall implicitly */
513}
514
515static const struct ScreenVTABLE MenuOptionsScreen_VTABLE = {
516 MenuOptionsScreen_Init, Screen_NullUpdate, MenuOptionsScreen_Free,

Callers

nothing calls this directly

Calls 7

Gui_MakeTitleFontFunction · 0.85
Gui_MakeBodyFontFunction · 0.85
Screen_UpdateVbFunction · 0.85
MenuOptionsScreen_UpdateFunction · 0.85
ButtonWidget_SetConstFunction · 0.85
TextGroupWidget_SetFontFunction · 0.85

Tested by

no test coverage detected