public override void Dispose()
 {
     // Refresh map
     InGame.Map.Refresh();
     // Prepare for Transition
     Graphics.Freeze();
     // Dispose of windows
     leftWindow.Dispose();
     rightWindow.Dispose();
     helpWindow.Dispose();
 }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
 /// <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();
 }