private void CloseKeybindingsWindow() { if (m_KeybindingsWindow != null) { if (!m_KeybindingsWindow.IsFadingOut) { config.KeymapperWindowPos = m_KeybindingsWindow.WindowPosition; m_KeybindingsWindow.FadeClose(); ResetWindow2InputLock(); } } else if (m_KeybindingsWindowObject != null) { Destroy(m_KeybindingsWindowObject); ResetWindow2InputLock(); } }
private void CloseMainWindow() { if (m_MainWindow != null) { if (!m_MainWindow.IsFadingOut) { config.MainWindowPos = m_MainWindow.WindowPosition; m_MainWindow.FadeClose(); config.RemoveListener(ScaleMainWindow); ResetWindow1InputLock(); } } else if (m_MainWindowObject != null) { Destroy(m_MainWindowObject); mainWindow.ClearMainWindow(); config.RemoveListener(ScaleMainWindow); ResetWindow1InputLock(); } }