public override void Init(BlockConfigPanelParameters parameters)
        {
            base.Init(parameters);
            var panelParameters = parameters as BaseBlockConfigPanelParameters;

            block = panelParameters.block;
            block.MassValueChanged       += UpdateTextFields;
            block.UseGravityValueChanged += UpdateTextFields;
            block.IsFreezeValueChanged   += UpdateTextFields;
            UpdateTextFields();
        }
Ejemplo n.º 2
0
        public override void Init(BlockConfigPanelParameters parameters)
        {
            base.Init(parameters);
            var panelParameters = parameters as LimitBlockConfigPanelParameters;

            limitControl = panelParameters.limitControl;
            limitControl.MinLimitChanged  += UpdateTextFields;
            limitControl.MaxLimitChanged  += UpdateTextFields;
            limitControl.UseLimitsChanged += UpdateTextFields;
            UpdateTextFields();
        }
Ejemplo n.º 3
0
        public override void Init(BlockConfigPanelParameters parameters)
        {
            base.Init(parameters);
            var panelParameters = parameters as MotorBlockConfigPanelParameters;

            motorControl = panelParameters.motorControl;

            motorControl.MotorVelocityChanged  += UpdateTextFields;
            motorControl.MotorForceChanged     += UpdateTextFields;
            motorControl.FreespinChanged       += UpdateTextFields;
            motorControl.Reverced              += UpdateTextFields;
            motorControl.ForwardAxisKeyChanged += UpdateTextFields;
            motorControl.BackAxisKeyChanged    += UpdateTextFields;
            motorControl.IsFixableValueChanged += UpdateTextFields;
            motorControl.MotorDamperChanged    += UpdateTextFields;

            UpdateTextFields();
        }
Ejemplo n.º 4
0
 public virtual void Init(BlockConfigPanelParameters blockConfigPanelParameters)
 {
     Type = blockConfigPanelParameters.Type;
 }
Ejemplo n.º 5
0
 public override void Init(BlockConfigPanelParameters parameters)
 {
     base.Init(parameters);
     var panelParameters = parameters as HingeBlockConfigPanelParameters;
 }