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

Method OnRoomSelectFaceByNumber

editor/editorView.cpp:911–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911void CEditorView::OnRoomSelectFaceByNumber() {
912 int n;
913
914 if (InputNumber(&n, "Select Face", "Enter face number to select", this)) {
915
916 if (n >= Curroomp->num_faces) {
917 OutrageMessageBox("Invalid face number.");
918 return;
919 }
920
921 Curface = n;
922 Curedge = Curvert = 0;
923
924 EditorStatus("Face %d selected.", Curface);
925
926 State_changed = 1;
927 }
928}
929
930void CEditorView::OnRoomSaveCurrentRoom() { theApp.main_frame->m_RoomDialog->OnSaveRoomLocally(); }
931

Callers

nothing calls this directly

Calls 3

InputNumberFunction · 0.85
OutrageMessageBoxFunction · 0.85
EditorStatusFunction · 0.85

Tested by

no test coverage detected