Example #1
0
        public Ds3Component(LiveSplitState state)
        {
            _control           = new Ds3Control();
            _timeFormatter     = new RegularTimeFormatter(TimeAccuracy.Hundredths);
            _infoTimeComponent = new InfoTimeComponent(ComponentName, TimeSpan.Zero, _timeFormatter);
            _infoTimeComponent = new InfoTimeComponent(ComponentName, TimeSpan.Zero, _timeFormatter);

            state.OnReset += delegate {
                _oldMillis = 0;
            };

            state.OnStart += delegate {
                _oldMillis = 0;
            };

            Pointer = new Ds3Pointer();
        }
Example #2
0
        public Ds3Component(LiveSplitState state)
        {
            _control           = new Ds3Control();
            _timeFormatter     = new RegularTimeFormatter(TimeAccuracy.Hundredths);
            _infoTimeComponent = new InfoTimeComponent(ComponentName, TimeSpan.Zero, _timeFormatter);
            _infoTimeComponent = new InfoTimeComponent(ComponentName, TimeSpan.Zero, _timeFormatter);

            state.OnReset += delegate {
                _oldMillis = 0;
            };

            state.OnStart += delegate {
                state.IsGameTimePaused = true;
                _oldMillis             = 0;
            };

            Pointer = new Ds3Pointer();

            _splitter = new Ds3AutoSplitter(state, _control.splitSettings);
        }
Example #3
0
 public Control GetSettingsControl(LayoutMode mode) => _control ?? (_control = new Ds3Control());