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

Method OnUpdateRoomSnapPlacedRoom

editor/editorView.cpp:1054–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void CEditorView::OnUpdateRoomSnapPlacedRoom(CCmdUI *pCmdUI) {
1055 pCmdUI->Enable(((Placed_room != -1) || (Placed_group != NULL)) && (Placed_baseroomp != NULL));
1056
1057 if (Placed_room != -1) {
1058 pCmdUI->SetText((Placed_door != -1) ? "Snap Placed Door" : "Snap Placed Room");
1059 pCmdUI->Enable(1);
1060 } else if (Placed_group != NULL) {
1061 pCmdUI->SetText("Snap Placed Group");
1062 pCmdUI->Enable(1);
1063 } else
1064 pCmdUI->Enable(0);
1065}
1066
1067void CEditorView::OnRoomJoinAdjacentFaces() {
1068 if (Markedroomp == NULL) {

Callers

nothing calls this directly

Calls 2

EnableMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected