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

Method OnOK

editor/ScriptWizard.cpp:198–203  ·  view source on GitHub ↗

We save whatever was added to the script. This does not include text added via edit (that's done in the internal script editor.) It does include text added from operations like Add Script, Add Event, etc.

Source from the content-addressed store, hash-verified

196// (that's done in the internal script editor.) It does include text added from operations like
197// Add Script, Add Event, etc.
198void CScriptWizard::OnOK() {
199 SaveScript(ScriptFileName, m_ScriptSource);
200 FreeScript(m_ScriptSource);
201
202 CDialog::OnOK();
203}
204
205// We just don't save anything. We free the script, if there is one
206void CScriptWizard::OnCancel() {

Callers

nothing calls this directly

Calls 2

SaveScriptFunction · 0.85
FreeScriptFunction · 0.85

Tested by

no test coverage detected