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

Method OnTrigGoto

editor/TriggerDialog.cpp:432–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432void CTriggerDialog::OnTrigGoto() {
433 int n;
434
435 if (InputNumber(&n, "Select Trigger", "Enter trigger number to select", this)) {
436
437 if (n >= Num_triggers) {
438 OutrageMessageBox("Invalid trigger number.");
439 return;
440 }
441
442 Current_trigger = n;
443
444 SetCurroomFromTrigger();
445
446 UpdateDialog();
447 }
448}
449
450void CTriggerDialog::OnTrigDelete() {
451 ASSERT(Current_trigger != -1);

Callers

nothing calls this directly

Calls 3

InputNumberFunction · 0.85
OutrageMessageBoxFunction · 0.85
SetCurroomFromTriggerFunction · 0.85

Tested by

no test coverage detected