MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Menu_Init

Function Menu_Init

code/ui/ui_shared.cpp:5733–5748  ·  view source on GitHub ↗

=============== Menu_Init =============== */

Source from the content-addressed store, hash-verified

5731===============
5732*/
5733void Menu_Init(menuDef_t *menu)
5734{
5735 memset(menu, 0, sizeof(menuDef_t));
5736 menu->cursorItem = -1;
5737
5738 UI_Cursor_Show(qtrue);
5739
5740 if (DC)
5741 {
5742 menu->fadeAmount = DC->Assets.fadeAmount;
5743 menu->fadeClamp = DC->Assets.fadeClamp;
5744 menu->fadeCycle = DC->Assets.fadeCycle;
5745 }
5746
5747 Window_Init(&menu->window);
5748}
5749
5750/*
5751===============

Callers 1

Menu_NewFunction · 0.70

Calls 2

UI_Cursor_ShowFunction · 0.85
Window_InitFunction · 0.70

Tested by

no test coverage detected