MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / OnChildDestroyed

Method OnChildDestroyed

engine/Poseidon/UI/DisplayUI.cpp:1325–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1323 Exit(idc);
1324 break;
1325 case IDC_CUST_DELETE:
1326 {
1327 CTree* tree = dynamic_cast<CTree*>(GetCtrl(IDC_CUST_GAME));
1328 CTreeItem* item = tree->GetSelected();
1329 if (item && item->level == 3)
1330 {
1331 CreateMsgBox(MB_BUTTON_OK | MB_BUTTON_CANCEL, LocalizeString(IDS_SURE), IDD_MSG_DELETEGAME);
1332 }
1333 }
1334 break;
1335 default:
1336 Display::OnButtonClicked(idc);
1337 break;
1338 }
1339}

Callers

nothing calls this directly

Calls 4

GetCtrlFunction · 0.85
DeleteDirectoryStructureFunction · 0.85
GetSelectedMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected