void LandscapeEditorBase::ClearSceneResources() { if(IsActive()) { HideAction(); } }
void LandscapeEditorBase::Close() { HideAction(); // RETURN TO THIS CODE LATER // workingLandscape->SetDebugFlags(workingLandscape->GetDebugFlags() & ~DebugRenderComponent::DEBUG_DRAW_GRID); workingLandscape->UpdateFullTiledTexture(); workingLandscape->SetTiledShaderMode(savedShaderMode); savedShaderMode = Landscape::TILED_MODE_MIXED; SafeRelease(workingLandscape); workingScene->RemoveNode(heightmapNode); SafeRelease(heightmapNode); SafeRelease(workingScene); state = ELE_NONE; if(delegate) { delegate->LandscapeEditorFinished(); } }
BOOL CAddonProgressDialog::OnInitDialog() { CDialog::OnInitDialog(); Util::CenterWindowInWindow(this); GetConfiguration()->ReplaceDialogText(this); m_fIsAborted = FALSE; //m_pProgressBar = (CProgressBar *)GetDlgItem(IDC_PROGRESS_BAR); //ASSERT (m_pProgressBar != NULL); HideAction(); HideItem(); return TRUE; // return TRUE unless you set the focus to a control }