Esempio n. 1
0
        protected override void OnShutdown()
        {
            Game.Screen.Elements.Remove(m_cameraHUD);
            m_cameraHUD.Dispose();
            m_cameraHUD = null;

            Game.Screen.Elements.Remove(m_prompt);
            m_prompt.Dispose();
            m_prompt = null;

            base.OnShutdown();
        }
Esempio n. 2
0
        public ThumbnailState(Game game, Mod mod, Campaign campaign, int levelIndex, string levelLoadPath, string levelSavePath) : base(game, levelLoadPath, LevelOptions.Menu)
        {
            m_mod        = mod;
            m_campaign   = campaign;
            m_levelIndex = levelIndex;

            m_levelSavePath = levelSavePath;
            EnableGamepad   = false;

            m_prompt               = new Text(UIFonts.Smaller, MouseButton.Left.GetPrompt() + " " + Game.Language.Translate("menus.editor.capture_thumbnail"), UIColours.Text, TextAlignment.Center);
            m_prompt.Anchor        = Anchor.BottomMiddle;
            m_prompt.LocalPosition = new Vector2(0.0f, -16.0f - m_prompt.Font.Height);

            m_cameraHUD = new CameraHUD();
            m_cameraHUD.ShowViewfinder = true;

            m_state = SubState.Waiting;
            m_timer = 0.0f;
            Level.TimeMachine.Rate = 0.0f;

            m_modified = false;
        }