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

Method OnInsertScriptButton

editor/DallasMainDlg.cpp:964–976  ·  view source on GitHub ↗

Inserts a new default script before the currently selected script

Source from the content-addressed store, hash-verified

962
963// Inserts a new default script before the currently selected script
964void CDallasMainDlg::OnInsertScriptButton() {
965 HTREEITEM new_node;
966
967 int new_id = GetLowestUnusedScriptID();
968
969 new_node = CreateDefaultScriptTree(new_id, m_ScriptTree.GetSelectedItem());
970 if (new_node != NULL) {
971 if (new_id == m_NextScriptID)
972 m_NextScriptID++;
973 m_ScriptTree.SelectItem(new_node);
974 AssignSpecificValue();
975 }
976}
977
978// Deletes the currently selected script
979void CDallasMainDlg::OnDeleteScriptButton() {

Callers

nothing calls this directly

Calls 2

GetSelectedItemMethod · 0.45
SelectItemMethod · 0.45

Tested by

no test coverage detected