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()); } }
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(); }
protected override void UpdateStandardMenu(bool active) { Window.update(active); VersionNumber.update(); Background.update(); }
protected override void UpdateStandardMenu(bool active) { Background.update(); if (Scrollbar != null) { Scrollbar.update(); if (active) { Scrollbar.update_input(); } } bool holdDown = false, holdUp = false; if (Global.Input.pressed(Inputs.Down)) { holdDown = true; } else if (Global.Input.pressed(Inputs.Up)) { holdUp = true; } else if (Scrollbar != null) { if (Scrollbar.DownHeld) { holdDown = true; } else if (Scrollbar.UpHeld) { holdUp = true; } } if (holdDown) { ScrollSpeed = Math.Max(1, ScrollSpeed); ScrollSpeed = Math.Min(ScrollSpeed + 0.25f, +MAX_SCROLL); } else if (holdUp) { ScrollSpeed = Math.Min(-1, ScrollSpeed); ScrollSpeed = Math.Max(ScrollSpeed - 0.25f, -MAX_SCROLL); } else { ScrollSpeed = 0f; } ScrollOffset.Y = (int)MathHelper.Clamp( ScrollOffset.Y + ScrollSpeed, 0, this.MaxScroll); if (Scrollbar != null) { Scrollbar.scroll = (int)ScrollOffset.Y; } // Full credits link if (FullCreditsButton != null) { FullCreditsButton.Update(active); bool fullCredits = false; fullCredits |= FullCreditsButton.consume_trigger(MouseButtons.Left) || FullCreditsButton.consume_trigger(TouchGestures.Tap); if (active) { fullCredits |= Global.Input.triggered(Inputs.X); } if (fullCredits) { OnOpenFullCredits(new EventArgs()); } } }