protected override void UpdateStandardMenu(bool active)
        {
            // Needed to animate map sprites
            if (this.HidesParent)
            {
                Global.game_system.update_timers();
            }

            Window.update(active);

            Background.update();
            FaceWindow.update();
            Face.update();
            NameBanner.update();
            Name.update();

            // Switch field/base support mode
            if (FieldBaseButton != null)
            {
                FieldBaseButton.Update(active);
            }

            bool switchField = active && Window.FieldBaseDifference &&
                               Global.Input.triggered(Inputs.X);

            if (FieldBaseButton != null)
            {
                switchField |= FieldBaseButton.consume_trigger(MouseButtons.Left) ||
                               FieldBaseButton.consume_trigger(TouchGestures.Tap);
            }
            if (switchField)
            {
                OnFieldBaseSwitched(new EventArgs());
            }
        }
Пример #2
0
        protected override void UpdateStandardMenu(bool active)
        {
            // Needed to animate map sprites
            Global.game_system.update_timers();

            Window.update(active);
            Background.update();
            FaceWindow.update();
            AuguryFace.update();
            TextBox.update();
        }