public override void Dispose() { // Refresh map InGame.Map.Refresh(); // Prepare for Transition Graphics.Freeze(); // Dispose of windows leftWindow.Dispose(); rightWindow.Dispose(); helpWindow.Dispose(); }
private void PlatformDestroyWindow(ImGuiViewportPtr viewport) { #if DEBUG using Profiler fullProfiler = new Profiler(GetType()); #endif if (viewport.PlatformUserData != IntPtr.Zero) { WindowBase window = (WindowBase)GCHandle.FromIntPtr(viewport.PlatformUserData).Target; window.Dispose(); viewport.PlatformUserData = IntPtr.Zero; } }
/// <summary> /// Dispose /// </summary> public override void Dispose() { // Prepare for Transition Graphics.Freeze(); // Dispose of windows helpWindow.Dispose(); commandWindow.Dispose(); goldWindow.Dispose(); dummyWindow.Dispose(); buyWindow.Dispose(); sellWindow.Dispose(); numberWindow.Dispose(); statusWindow.Dispose(); }