Adds a new default script to the end of the list
| 947 | |
| 948 | // Adds a new default script to the end of the list |
| 949 | void 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 |
| 964 | void CDallasMainDlg::OnInsertScriptButton() { |
nothing calls this directly
no test coverage detected