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

Method OnUpdateZbutton

editor/editorView.cpp:939–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939void CEditorView::OnUpdateZbutton(CCmdUI *pCmdUI) {
940 static bool first_time = 1, opengl;
941 if (first_time) {
942 first_time = 0;
943 opengl = (FindArg("-WindowGL") != 0);
944 }
945
946 pCmdUI->Enable(!opengl);
947 pCmdUI->SetCheck(opengl || Use_software_zbuffer);
948}
949
950void CEditorView::OnRoomDropRoom() {
951 if (D3EditState.current_room == -1) {

Callers

nothing calls this directly

Calls 3

SetCheckMethod · 0.80
FindArgFunction · 0.50
EnableMethod · 0.45

Tested by

no test coverage detected