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

Method OnSegSidePane

editor/MainFrm.cpp:1626–1646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624const char *GetErrorMessage() { return Editor_error_message; }
1625
1626void CMainFrame::OnSegSidePane(CCmdUI *pCmdUI) {
1627 CString strSegSide;
1628
1629 pCmdUI->Enable();
1630 if (Editor_view_mode == VM_TERRAIN) {
1631 // We could put something here, but I don't know what. Jason?
1632 } else if (Editor_view_mode == VM_MINE) {
1633 if (Curroomp)
1634 strSegSide.Format("Cur %d:%d", ROOMNUM(Curroomp), Curface);
1635 else
1636 strSegSide.Format("No curroom");
1637 } else if (Editor_view_mode == VM_ROOM) {
1638 if (Current_faces[D3EditState.current_room - FIRST_PALETTE_ROOM] != -1)
1639 strSegSide.Format("Face %d", Current_faces[D3EditState.current_room - FIRST_PALETTE_ROOM]);
1640 else
1641 strSegSide.Format("No face");
1642 } else
1643 Int3();
1644
1645 pCmdUI->SetText(strSegSide);
1646}
1647
1648void CMainFrame::OnBMMemPane(CCmdUI *pCmdUI) {
1649 CString strSegSide;

Callers

nothing calls this directly

Calls 2

EnableMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected