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

Function Menu_RunCloseScript

code/ui/ui_shared.cpp:1627–1635  ·  view source on GitHub ↗

=============== Menu_RunCloseScript =============== */

Source from the content-addressed store, hash-verified

1625===============
1626*/
1627static void Menu_RunCloseScript(menuDef_t *menu)
1628{
1629 if (menu && menu->window.flags & WINDOW_VISIBLE && menu->onClose)
1630 {
1631 itemDef_t item;
1632 item.parent = menu;
1633 Item_RunScript(&item, menu->onClose);
1634 }
1635}
1636
1637/*
1638===============

Callers 3

Menus_CloseByNameFunction · 0.70
Menus_CloseAllFunction · 0.70
Menus_HandleOOBClickFunction · 0.70

Calls 1

Item_RunScriptFunction · 0.70

Tested by

no test coverage detected