public CharacterAnimation()
        {
            _settings = DependencyInjection.Resolve<IReadOnlySettings>();
            _animationPosition = new Vector2(500, 100);

            _animationButton = new FlipTextButton<bool>(550, 3);
            _animationButton.AddOption(false, "play");
            _animationButton.AddOption(true, "stop");
            _animationButton.Value = false;
        }
Ejemplo n.º 2
0
        public CharacterAnimation()
        {
            _settings          = DependencyInjection.Resolve <IReadOnlySettings>();
            _animationPosition = new Vector2(500, 100);

            _animationButton = new FlipTextButton <bool>(550, 3);
            _animationButton.AddOption(false, "play");
            _animationButton.AddOption(true, "stop");
            _animationButton.Value = false;
        }
Ejemplo n.º 3
0
        private void CreateLedgeFlagsButtons()
        {
            for (var i = 0; i < _mapData.Ledges.Length; i++)
            {
                var button = new FlipTextButton<int>(_x + 160, _y + i * YIncrement);
                button.AddOption(0, "soft");
                button.AddOption(1, "hard");

                var ledge = _mapData.Ledges[i];
                button.Value = ledge.Flags;
                button.Change = v => ledge.Flags = v;

                _ledgeFlagsButtons[i] = button;
            }
        }
Ejemplo n.º 4
0
        private void CreateLedgeFlagsButtons()
        {
            for (var i = 0; i < _mapData.Ledges.Length; i++)
            {
                var button = new FlipTextButton <int>(_x + 160, _y + i * YIncrement);
                button.AddOption(0, "soft");
                button.AddOption(1, "hard");

                var ledge = _mapData.Ledges[i];
                button.Value  = ledge.Flags;
                button.Change = v => ledge.Flags = v;

                _ledgeFlagsButtons[i] = button;
            }
        }