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

Method AddNewLevel

editor/ScriptLevelInterface.cpp:986–1001  ·  view source on GitHub ↗

======================File Checkin/Checkout Functions======================

Source from the content-addressed store, hash-verified

984
985// ======================File Checkin/Checkout Functions======================
986bool CScriptLevelInterface::AddNewLevel(void) {
987 char filename[255];
988
989 if (!Network_up) {
990 OutrageMessageBox("You need to say Yes on the initial data update, in order to\nadd files\n");
991 return false;
992 }
993
994 // Get the filename of the representing image
995 CString filter = "Descent III Levels (*.d3l)|*.d3l||";
996
997 if (!OpenFileDialog(this, (LPCTSTR)filter, filename, Current_files_dir, sizeof(Current_files_dir)))
998 return false;
999
1000 return AddNewGameFile(filename, "levels");
1001}
1002
1003bool CScriptLevelInterface::AddNewScript(void) {
1004 char filename[255];

Callers

nothing calls this directly

Calls 3

OutrageMessageBoxFunction · 0.85
OpenFileDialogFunction · 0.85
AddNewGameFileFunction · 0.85

Tested by

no test coverage detected