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

Method OnNewScriptButton

editor/DallasMainDlg.cpp:949–961  ·  view source on GitHub ↗

Adds a new default script to the end of the list

Source from the content-addressed store, hash-verified

947
948// Adds a new default script to the end of the list
949void CDallasMainDlg::OnNewScriptButton() {
950 HTREEITEM new_node;
951
952 int new_id = GetLowestUnusedScriptID();
953
954 new_node = CreateDefaultScriptTree(new_id);
955 if (new_node != NULL) {
956 if (new_id == m_NextScriptID)
957 m_NextScriptID++;
958 m_ScriptTree.SelectItem(new_node);
959 AssignSpecificValue();
960 }
961}
962
963// Inserts a new default script before the currently selected script
964void CDallasMainDlg::OnInsertScriptButton() {

Callers

nothing calls this directly

Calls 1

SelectItemMethod · 0.45

Tested by

no test coverage detected