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

Method OnEditSaveScrap

editor/MainFrm.cpp:2264–2282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2262 EditorStatus("%d rooms selected", count);
2263}
2264
2265void CMainFrame::OnEditSaveScrap() {
2266 if (Scrap == NULL) {
2267 OutrageMessageBox("The scrap buffer is empty.");
2268 return;
2269 }
2270
2271 CString filter = "D3 Group Files (*.grp)|*.grp||";
2272 char filename[255];
2273
2274 if (!SaveFileDialog(this, (LPCSTR)filter, filename, Current_scrap_dir, sizeof(Current_scrap_dir)))
2275 return;
2276
2277 if (!strchr(filename, '.'))
2278 strcat(filename, ".grp");
2279
2280 SaveGroup(filename, Scrap);
2281
2282 EditorStatus("Group saved to %s", filename);
2283}
2284
2285void CMainFrame::OnEditLoadScrap() {

Callers

nothing calls this directly

Calls 4

OutrageMessageBoxFunction · 0.85
SaveFileDialogFunction · 0.85
SaveGroupFunction · 0.85
EditorStatusFunction · 0.85

Tested by

no test coverage detected