示例#1
0
    public static object[] GetRange(EBendParameterName name)
    {
        switch (Engine.unitType)
        {
        case Units.Type.Metric:
            return(BendParameterMeta.NameRangesMetric[(int)name]);

        case Units.Type.Standard:
            return(BendParameterMeta.NameRangesStandard[(int)name]);
        }
        return(null);
    }
示例#2
0
    public BendParameter(EBendParameterName name, EBendParameterType type, Color color, object value, object valueObject = null, bool enabled = true)
    {
        this.name        = name;
        this.type        = type;
        this.color       = color;
        this.value       = value;
        this.valueObject = valueObject;

        // Make Color String
        m_ColorHexString = ((int)(color.r * 255)).ToString("X2")
                           + ((int)(color.g * 255)).ToString("X2")
                           + ((int)(color.b * 255)).ToString("X2")
                           + ((int)(color.a * 255)).ToString("X2");
    }
示例#3
0
 public BendParameter GetOutputParameter(EBendParameterName name)
 {
     return(m_OutputParameters.Find((bp) => bp.name == name));
 }
示例#4
0
 public static string GetStringValue(EBendParameterName name)
 {
     return(BendParameterMeta.NameStrings[(int)name]);
 }