ARCed.Database.Actors.ParamGenerateCurveDialog.ParamGenerateCurveDialog C# (CSharp) Method

ParamGenerateCurveDialog() public method

Default constructor.
public ParamGenerateCurveDialog ( Actor &actor, int paramIndex ) : System
actor RPG.Actor Reference to an object.
paramIndex int Index of the parameter to change
return System
        public ParamGenerateCurveDialog(ref Actor actor, int paramIndex)
        {
            this.InitializeComponent();
            var max = Project.Settings.GetMaxValue(paramIndex);
            this.numericInitial.Maximum = max;
            this.numericFinal.Maximum = max;
            this.numericFinal.Value = actor.parameters[paramIndex, actor.final_level];
            this.numericInitial.Value = actor.parameters[paramIndex, actor.initial_level];
        }