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

Method OnTrigEditScript

editor/TriggerDialog.cpp:795–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795void CTriggerDialog::OnTrigEditScript() {
796
797 mprintf(0, "Edit script for trigger %d\n", Current_trigger);
798
799 // Make sure Dallas is open
800 if (theApp.m_DallasModelessDlgPtr == NULL) {
801 theApp.m_DallasModelessDlgPtr = new CDallasMainDlg;
802 theApp.m_DallasModelessDlgPtr->Create(IDD_DALLAS_MAIN_DIALOG, this);
803 theApp.m_DallasModelessDlgPtr->ShowWindow(SW_SHOW);
804 } else
805 theApp.m_DallasModelessDlgPtr->ShowWindow(SW_RESTORE);
806
807 // make sure a trigger was selected
808 if (Current_trigger == -1)
809 return;
810
811 // Tell Dallas to add a new script with this trigger as the owner
812 theApp.m_DallasModelessDlgPtr->m_ScriptOwnerType = TRIGGER_TYPE;
813 theApp.m_DallasModelessDlgPtr->m_ScriptOwnerHandle = Current_trigger;
814 theApp.m_DallasModelessDlgPtr->PostMessage(WM_HIGHLIGHT_SCRIPTS);
815}
816
817void CTriggerDialog::OnTrigActivClutter() {
818 trigger *tp = &Triggers[Current_trigger];

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected