Example #1
0
        public EditorProperty(string Name, string Desc, EditorPropertyType Type, EditorPropertyLimits Limits, int Flags = 0)
            : this(Name, Desc, Type)
        {
            if (Limits.max == 0 && Limits.min == 0)
            {
                limits.max = Sandbox.UIConstants.MAX_SLIDER_VALUE;
            }
            else
            {
                limits.max = Limits.max;
                limits.min = Limits.min;
            }

            flags = Flags;
        }
Example #2
0
        public EditorProperty(string Name, string Desc, string DefaultValue, EditorPropertyType Type, EditorPropertyLimits Limits, int Flags = 0)
            : this(Name, Desc, DefaultValue, Type)
        {
            if (Limits.max == 0 && Limits.min == 0)
            {
                limits.max = Sandbox.UIConstants.MAX_SLIDER_VALUE;
            }
            else
            {
                limits.max = Limits.max;
                limits.min = Limits.min;
            }

            flags = Flags;
        }