void DoSurface (void) { g_bNewFace = ( g_PrefsDlg.m_bFace != FALSE ); g_bNewApplyHandling = ( g_PrefsDlg.m_bNewApplyHandling != FALSE ); g_bGatewayhack = ( g_PrefsDlg.m_bGatewayHack != FALSE ); // save current state for cancel g_old_texdef = g_qeglobals.d_texturewin.texdef; g_changed_surface = false; if (g_surfwin == NULL && g_dlgSurface.GetSafeHwnd() == NULL) { g_patch_texdef.scale[0] = 0.05f; g_patch_texdef.scale[1] = 0.05f; g_patch_texdef.shift[0] = 0.05f; g_patch_texdef.shift[1] = 0.05f; // use rotation increment from preferences g_patch_texdef.rotate = g_PrefsDlg.m_nRotation; g_dlgSurface.Create(IDD_SURFACE); CRect rct; LONG lSize = sizeof(rct); if (LoadRegistryInfo("radiant_SurfaceWindow", &rct, &lSize)) { g_dlgSurface.SetWindowPos( NULL, rct.left, rct.top, 0, 0, SWP_NOSIZE | SWP_SHOWWINDOW ); } g_dlgSurface.ShowWindow(SW_SHOW); Sys_UpdateWindows(W_ALL); } else { g_surfwin = g_dlgSurface.GetSafeHwnd(); g_dlgSurface.SetTexMods (); g_dlgSurface.ShowWindow(SW_SHOW); } }
void UpdateSurfaceDialog( void ) { if ( g_surfwin ) { g_dlgSurface.SetTexMods(); g_dlgSurface.UpdateInfo(); // sikk - Merged Patch Inspector into Surface Inspector } g_pParentWnd->UpdateTextureBar(); }
void UpdateSurfaceDialog() { if (g_qeglobals.bSurfacePropertiesPlugin) { g_SurfaceTable.m_pfnUpdateSurfaceDialog(); } else { if (g_surfwin) g_dlgSurface.SetTexMods(); } g_pParentWnd->UpdateTextureBar(); }
void UpdateSurfaceDialog() { if (g_surfwin) { g_dlgSurface.SetTexMods(); } g_pParentWnd->UpdateTextureBar(); }