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

Method OnViewTexturemine

editor/editorView.cpp:640–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638void CEditorView::OnUpdateViewTexturemine(CCmdUI *pCmdUI) { pCmdUI->SetCheck(D3EditState.texscr_visible); }
639
640void CEditorView::OnViewTexturemine() {
641 RECT texture_rect;
642
643 D3EditState.texscr_visible = !D3EditState.texscr_visible;
644
645 if (!D3EditState.texscr_visible) {
646 if (D3EditState.tile_views) {
647 DeactivateView();
648 ActivateView();
649 } else if (theApp.textured_view)
650 m_grwndTexture.DestroyWindow();
651 } else {
652 if (D3EditState.tile_views) { // for tiling, reinit the views.
653 DeactivateView();
654 ActivateView();
655 } else {
656 SetRect(&texture_rect, D3EditState.texscr_x, D3EditState.texscr_y, D3EditState.texscr_x + D3EditState.texscr_w,
657 D3EditState.texscr_y + D3EditState.texscr_h);
658 m_grwndTexture.Create(texture_rect, TRUE, this);
659 }
660 }
661}
662
663void CEditorView::OnUpdateViewWireframemine(CCmdUI *pCmdUI) { pCmdUI->SetCheck(D3EditState.wirescr_visible); }
664

Callers

nothing calls this directly

Calls 2

DestroyWindowMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected