Beispiel #1
0
        protected override void OnShutdown()
        {
            base.OnShutdown();

            // Remove the GUI
            Game.Screen.Elements.Remove(m_skipPrompt);
            m_skipPrompt.Dispose();
        }
Beispiel #2
0
        protected override void OnShutdown()
        {
            Game.Screen.Elements.Remove(m_titleMenu);
            m_titleMenu.Dispose();

            Game.Screen.Elements.Remove(m_backPrompt);
            m_backPrompt.Dispose();

            Game.Screen.Elements.Remove(m_selectPrompt);
            m_selectPrompt.Dispose();

            Game.Screen.Elements.Remove(m_altSelectPrompt);
            m_altSelectPrompt.Dispose();

            base.OnShutdown();
        }
Beispiel #3
0
        protected override void OnShutdown()
        {
            base.OnShutdown();

            // Steam controller
            if (Game.ActiveSteamController != null)
            {
                Game.ActiveSteamController.ActionSet = SteamControllerActionSet.Menu.GetID();
            }

            // Shutdown the computer
            m_computer.Dispose();
            m_computer = null;

            // Stop audio
            if (m_speakerOutput != null)
            {
                m_speakerOutput.Stop();
            }

            // Dispose elements
            m_displayTexture.Dispose();
            m_displayBitmap.Dispose();

            Game.Screen.Elements.Remove(m_backPrompt);
            m_backPrompt.Dispose();

            Game.Screen.Elements.Remove(m_diskSelectPrompt);
            m_diskSelectPrompt.Dispose();

            Game.Screen.Elements.Remove(m_aPrompt);
            m_aPrompt.Dispose();

            Game.Screen.Elements.Remove(m_bPrompt);
            m_bPrompt.Dispose();

            // Remove disk selector
            if (m_diskSelector != null)
            {
                Game.Screen.Elements.Remove(m_diskSelector);
                m_diskSelector.Dispose();
                m_diskSelector = null;
            }
        }
Beispiel #4
0
        public override void Dispose()
        {
            base.Dispose();
            m_geometry.Dispose();
            m_backPrompt.Dispose();
            m_selectPrompt.Dispose();
            m_browseWorkshopPrompt.Dispose();
            m_nextPageButton.Dispose();
            m_previousPageButton.Dispose();

            // Dispose labels
            for (int i = 0; i < m_disks.Length; ++i)
            {
                var disk = m_disks[i];
                if (disk.Mod != null && m_diskLabels[i] != null)
                {
                    m_diskLabels[i].Dispose();
                }
            }
        }
Beispiel #5
0
        public override void Dispose()
        {
            base.Dispose();

            // Dispose elements
            for (int i = 0; i < m_elements.Count; ++i)
            {
                m_elements[i].Dispose();
            }
            m_closePrompt.Dispose();
            m_acceptPrompt.Dispose();

            // Dispose self
            m_bgGeometry.Dispose();

            if (Screen != null && Screen.ModalDialog == this)
            {
                Screen.ModalDialog = null;
            }

            m_disposed = true;
        }