Example #1
0
        public void SetUp() => Schedule(() =>
        {
            nextRandomCalled     = false;
            previousRandomCalled = false;

            Footer footer;

            Child = footer = new Footer
            {
                Anchor = Anchor.Centre,
                Origin = Anchor.Centre,
            };

            footer.AddButton(new FooterButtonMods(), null);
            footer.AddButton(randomButton = new FooterButtonRandom
            {
                NextRandom     = () => nextRandomCalled = true,
                PreviousRandom = () => previousRandomCalled = true,
            }, null);
            footer.AddButton(new FooterButtonOptions(), null);

            InputManager.MoveMouseTo(Vector2.Zero);
        });