private static ParamRow AddSliderComponent(string ParameterName, object value, string fieldName, ParameterAttribute attrib, SpriteFont customFont)
        {
            LabelControl label = new LabelControl()
            {
                Text = ParameterName, CustomFont = customFont
            };
            LabelControl labelInfo = new LabelControl()
            {
                Text = "???", CustomFont = customFont, Suffix = attrib.InfoSuffix
            };

            HorizontalSliderControl input = new HorizontalSliderControl()
            {
                ThumbSize           = 0.1f,//1 / (float)(attrib.MaxSliderValue - attrib.MinSliderValue),
                ThumbSmoothMovement = true
            };

            input.ThumbMinValue = (int)attrib.MinSliderValue;
            input.ThumbMaxValue = (int)attrib.MaxSliderValue;
            input.Value         = (int)value;
            input.Tag           = labelInfo;
            ParamRow row = new ParamRow()
            {
                LabelName = label, InputingComp = input, LabelInfo = labelInfo, ParamInputMethod = ParamInputMethod.Slider, FieldData = new ParamValue()
                {
                    Value = value, Name = fieldName
                }
            };

            input.Tag2 = row;
            return(row);
        }
        private static ParamRow AddListComponent(string ParameterName, object value, string fieldName, ParameterAttribute attrib, SpriteFont customFont, SpriteTexture customButton, SpriteTexture customButtonDown, SpriteTexture customButtonHover)
        {
            LabelControl label = new LabelControl()
            {
                Text = ParameterName, CustomFont = customFont
            };
            ButtonControl buttonList = new ButtonControl()
            {
                CustomImage      = customButton,
                CustomImageDown  = customButtonDown,
                CustomImageHover = customButtonHover,
                Text             = value.ToString(),
                TextFontId       = 1,
                Color            = new ByteColor(200, 200, 200, 255)
            };

            buttonList.Tag = attrib.ListValues;
            ParamRow row = new ParamRow()
            {
                LabelName = label, InputingComp = buttonList, ParamInputMethod = ParamInputMethod.ButtonList, FieldData = new ParamValue()
                {
                    Value = value, Name = fieldName
                }
            };

            buttonList.Tag2 = row;
            return(row);
        }