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

Method OnObjectSelectByNumber

editor/MainFrm.cpp:3437–3449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3435
3436void SelectObject(int objnum);
3437
3438void CMainFrame::OnObjectSelectByNumber() {
3439 int n;
3440
3441 if (InputNumber(&n, "Select Object", "Enter object number to select", this)) {
3442
3443 if ((n > Highest_object_index) || (Objects[n].type == OBJ_NONE)) {
3444 OutrageMessageBox("Invalid object number.");
3445 return;
3446 }
3447
3448 SelectObject(n);
3449 }
3450}
3451
3452#include "manage.h"

Callers

nothing calls this directly

Calls 3

InputNumberFunction · 0.85
OutrageMessageBoxFunction · 0.85
SelectObjectFunction · 0.85

Tested by

no test coverage detected