public LedgePallete(int x, int y)
        {
            _x = x;
            _y = y;
            _mapData = DependencyInjection.Resolve<IReadonlyMapData>();
            _text = DependencyInjection.Resolve<IText>();
            _settings = DependencyInjection.Resolve<IReadOnlySettings>();
            _ledgeSelector = new LedgeSelector(x, y, YIncrement);
            _ledgeFlagsButtons = new FlipTextButton<int>[_mapData.Ledges.Length];
            CreateLedgeFlagsButtons();

            var ledgesLoader = DependencyInjection.Resolve<ILedgesLoader>();
            ledgesLoader.LedgesLoaded += UpdateLedgeFlagsButtonValues;
        }
        public LedgePallete(int x, int y)
        {
            _x                 = x;
            _y                 = y;
            _mapData           = DependencyInjection.Resolve <IReadonlyMapData>();
            _text              = DependencyInjection.Resolve <IText>();
            _settings          = DependencyInjection.Resolve <IReadOnlySettings>();
            _ledgeSelector     = new LedgeSelector(x, y, YIncrement);
            _ledgeFlagsButtons = new FlipTextButton <int> [_mapData.Ledges.Length];
            CreateLedgeFlagsButtons();

            var ledgesLoader = DependencyInjection.Resolve <ILedgesLoader>();

            ledgesLoader.LedgesLoaded += UpdateLedgeFlagsButtonValues;
        }
Beispiel #3
0
 public SaveButton(int x, int y) : base(x, y)
 {
     _settings = DependencyInjection.Resolve <IReadOnlySettings>();
     _mapData  = DependencyInjection.Resolve <IReadonlyMapData>();
 }